registerBearerAuthSecurityScheme

fun Application.registerBearerAuthSecurityScheme(name: String? = null, description: String = HttpSecurityScheme.DEFAULT_BEARER_DESCRIPTION, bearerFormat: String? = null)(source)

Registers a Bearer HTTP authentication security scheme.

Report a problem

Parameters

name

The name of the security scheme. Defaults to "default".

description

Optional description for the security scheme. Defaults to "HTTP Bearer Authentication".

bearerFormat

Optional hint about the bearer token format (e.g., "JWT").