OpenApiDocDescriptor.ApplySecurityScheme method
Applies a security scheme to the OpenAPI document based on the provided authentication options.
public void ApplySecurityScheme(string scheme, IOpenApiAuthenticationOptions options)
| parameter | description |
|---|---|
| scheme | The name of the security scheme. |
| options | The authentication options. |
Exceptions
| exception | condition |
|---|---|
| NotSupportedException | Thrown when the authentication options type is not supported. |
See Also
- interface IOpenApiAuthenticationOptions
- class OpenApiDocDescriptor
- namespace Kestrun.OpenApi