OpenApiSecurityScheme

How a caller presents its identity to the public routes, as an OpenAPI security scheme: the host declares the schemes of its caller resolver, CoSec's a bearer token, so that a client, Swagger UI's "Try it out" among them, sends the identity.

  • bearer: Authorization: Bearer <token>, the token's format (JWT) a hint only;

  • header: an API key in the request header name.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The format of a bearer token, a hint only: JWT.

Link copied to clipboard
Link copied to clipboard
val name: String?

The request header of an apiKey scheme.

Link copied to clipboard

The HTTP authorization scheme of an http scheme: bearer.

Link copied to clipboard

The OpenAPI type: http or apiKey.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String