ScopedAuth

zio.http.endpoint.AuthType.ScopedAuth
final case class ScopedAuth[ClientReq](authType: AuthType { type ClientRequirement = ClientReq; }, _scopes: List[String]) extends AuthType

Attributes

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

Members list

Type members

Types

type ClientRequirement = ClientReq

Attributes

Source
AuthType.scala

Value members

Concrete methods

Attributes

Source
AuthType.scala
def scopes(newScopes: List[String]): ScopedAuth[ClientReq]

Attributes

Source
AuthType.scala
override def unauthorizedStatus: Status

The HTTP status code returned when authentication fails. Defaults to Status.NotFound (404) for security (information hiding). Override with withUnauthorizedStatus to use e.g. Status.Unauthorized (401).

The HTTP status code returned when authentication fails. Defaults to Status.NotFound (404) for security (information hiding). Override with withUnauthorizedStatus to use e.g. Status.Unauthorized (401).

Attributes

Definition Classes
Source
AuthType.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Returns a copy of this auth type with a different unauthorized status.

Returns a copy of this auth type with a different unauthorized status.

AuthType.Bearer.withUnauthorizedStatus(Status.Unauthorized)

Attributes

Inherited from:
AuthType
Source
AuthType.scala
def |[ClientReq2, ClientReq](that: AuthType { type ClientRequirement = ClientReq2; })(implicit alternator: WithOut[ClientRequirement, ClientReq2, ClientReq]): AuthType { type ClientRequirement = ClientReq; }

Attributes

Inherited from:
AuthType
Source
AuthType.scala

Concrete fields

override val codec: HttpCodec[RequestType, ClientReq]

Attributes

Source
AuthType.scala