registerOAuth2SecurityScheme
fun Application.registerOAuth2SecurityScheme(name: String? = null, flows: OAuthFlows, description: String? = OAuth2SecurityScheme.DEFAULT_DESCRIPTION)(source)
Registers an OAuth2 authentication security scheme.
Parameters
name
The name of the security scheme. Defaults to "default".
flows
The OAuth2 flows configuration.
description
Optional description for the security scheme. Defaults to "OAuth2 Authentication".