SecurityScheme

zio.blocks.openapi.SecurityScheme
See theSecurityScheme companion trait

Attributes

Companion
trait
Source
OpenAPI.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class APIKey(name: String, in: APIKeyLocation, description: Option[Doc] = ..., extensions: ChunkMap[String, Json] = ...) extends SecurityScheme

API key authentication.

API key authentication.

Value parameters

description

A description for security scheme. CommonMark syntax MAY be used for rich text representation.

extensions

Specification extensions (x-* fields). These allow adding additional properties beyond the standard OpenAPI fields.

in

REQUIRED. The location of the API key.

name

REQUIRED. The name of the header, query or cookie parameter to be used.

Attributes

Source
OpenAPI.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class HTTP(scheme: String, bearerFormat: Option[String] = ..., description: Option[Doc] = ..., extensions: ChunkMap[String, Json] = ...) extends SecurityScheme

HTTP authentication scheme (Bearer, Basic, etc.).

HTTP authentication scheme (Bearer, Basic, etc.).

Value parameters

bearerFormat

A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.

description

A description for security scheme. CommonMark syntax MAY be used for rich text representation.

extensions

Specification extensions (x-* fields). These allow adding additional properties beyond the standard OpenAPI fields.

scheme

REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry.

Attributes

Source
OpenAPI.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class MutualTLS(description: Option[Doc] = ..., extensions: ChunkMap[String, Json] = ...) extends SecurityScheme

Mutual TLS authentication.

Mutual TLS authentication.

Value parameters

description

A description for security scheme. CommonMark syntax MAY be used for rich text representation.

extensions

Specification extensions (x-* fields). These allow adding additional properties beyond the standard OpenAPI fields.

Attributes

Source
OpenAPI.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class OAuth2(flows: OAuthFlows, description: Option[Doc] = ..., extensions: ChunkMap[String, Json] = ...) extends SecurityScheme

OAuth 2.0 authentication.

OAuth 2.0 authentication.

Value parameters

description

A description for security scheme. CommonMark syntax MAY be used for rich text representation.

extensions

Specification extensions (x-* fields). These allow adding additional properties beyond the standard OpenAPI fields.

flows

REQUIRED. An object containing configuration information for the flow types supported.

Attributes

Source
OpenAPI.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class OpenIdConnect(openIdConnectUrl: String, description: Option[Doc] = ..., extensions: ChunkMap[String, Json] = ...) extends SecurityScheme

OpenID Connect authentication.

OpenID Connect authentication.

Value parameters

description

A description for security scheme. CommonMark syntax MAY be used for rich text representation.

extensions

Specification extensions (x-* fields). These allow adding additional properties beyond the standard OpenAPI fields.

openIdConnectUrl

REQUIRED. OpenID Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL. The OpenID Connect standard requires the use of TLS.

Attributes

Source
OpenAPI.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Implicits

Implicits

implicit val schema: Schema[SecurityScheme]

Attributes

Source
OpenAPI.scala