IOpenApiSecurityScheme Interface
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.
Defines the base properties for the security scheme object. This interface is provided for type assertions but should not be implemented by package consumers beyond automatic mocking.
public interface IOpenApiSecurityScheme : Microsoft.OpenApi.IOpenApiDescribedElement, Microsoft.OpenApi.IOpenApiReadOnlyExtensible, Microsoft.OpenApi.IOpenApiReferenceable, Microsoft.OpenApi.IShallowCopyable<Microsoft.OpenApi.IOpenApiSecurityScheme>
type IOpenApiSecurityScheme = interface
interface IOpenApiDescribedElement
interface IOpenApiElement
interface IOpenApiReadOnlyExtensible
interface IShallowCopyable<IOpenApiSecurityScheme>
interface IOpenApiReferenceable
interface IOpenApiSerializable
Public Interface IOpenApiSecurityScheme
Implements IOpenApiDescribedElement, IOpenApiReadOnlyExtensible, IOpenApiReferenceable, IShallowCopyable(Of IOpenApiSecurityScheme)
- Derived
- Implements
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. (Inherited from IOpenApiDescribedElement) |
| Extensions |
Specification extensions. (Inherited from IOpenApiReadOnlyExtensible) |
| 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. (Inherited from IShallowCopyable<T>) |
| SerializeAsV2(IOpenApiWriter) |
Serialize Open API element to v2.0. (Inherited from IOpenApiSerializable) |
| SerializeAsV3(IOpenApiWriter) |
Serialize Open API element to v3.0. (Inherited from IOpenApiSerializable) |
| SerializeAsV31(IOpenApiWriter) |
Serialize OpenAPI element into v3.1 (Inherited from IOpenApiSerializable) |
| SerializeAsV32(IOpenApiWriter) |
Serialize OpenAPI element into v3.2 (Inherited from IOpenApiSerializable) |
Extension Methods
| Name | Description |
|---|---|
| Validate(IOpenApiElement, ValidationRuleSet) |
Validate element and all child elements |