OpenApiSecurityScheme Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Security Scheme Object.
public class OpenApiSecurityScheme : Microsoft.OpenApi.IOpenApiExtensible, Microsoft.OpenApi.IOpenApiSecurityScheme, Microsoft.OpenApi.IShallowCopyable<Microsoft.OpenApi.IOpenApiSecurityScheme>
type OpenApiSecurityScheme = class
interface IOpenApiExtensible
interface IOpenApiElement
interface IOpenApiSecurityScheme
interface IOpenApiDescribedElement
interface IOpenApiReadOnlyExtensible
interface IShallowCopyable<IOpenApiSecurityScheme>
interface IOpenApiReferenceable
interface IOpenApiSerializable
Public Class OpenApiSecurityScheme
Implements IOpenApiExtensible, IOpenApiSecurityScheme, IShallowCopyable(Of IOpenApiSecurityScheme)
- Inheritance
-
OpenApiSecurityScheme
- Implements
Constructors
| Name | Description |
|---|---|
| OpenApiSecurityScheme() |
Parameterless constructor |
Properties
| Name | Description |
|---|---|
| BearerFormat |
A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. |
| Deprecated |
Specifies that a security scheme is deprecated and SHOULD be transitioned out of usage. Note: This field is supported in OpenAPI 3.2.0+. For earlier versions, it will be serialized as x-oai-deprecated extension. |
| Description |
Long description for the example. CommonMark syntax MAY be used for rich text representation. |
| Extensions |
Specification extensions. |
| Flows |
REQUIRED. An object containing configuration information for the flow types supported. |
| In |
REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie". |
| Name |
REQUIRED. The name of the header, query or cookie parameter to be used. |
| OpenIdConnectUrl |
REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. |
| Scheme |
REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235. |
| Type |
REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect". |
Methods
| Name | Description |
|---|---|
| CreateShallowCopy() |
Create a shallow copy of the current instance. |
| SerializeAsV2(IOpenApiWriter) |
Serialize OpenApiSecurityScheme to Open Api v2.0 |
| SerializeAsV3(IOpenApiWriter) |
Serialize OpenApiSecurityScheme to Open Api v3.0 |
| SerializeAsV31(IOpenApiWriter) |
Serialize OpenApiSecurityScheme to Open Api v3.1 |
| SerializeAsV32(IOpenApiWriter) |
Serialize OpenApiSecurityScheme to Open Api v3.2 |
Extension Methods
| Name | Description |
|---|---|
| Validate(IOpenApiElement, ValidationRuleSet) |
Validate element and all child elements |