registerSecurityScheme

fun Application.registerSecurityScheme(providerName: String?, securityScheme: SecurityScheme)(source)

Registers a security scheme for an authentication provider. This metadata will be used to generate the OpenAPI specification. It's not recommended to use this method after the application has started.

Report a problem

Parameters

providerName

The name of the authentication provider. Defaults to "default".

securityScheme

The OpenAPI security scheme definition.