Or

zio.blocks.endpoint.AuthType.Or
final case class Or[ClientReq1, ClientReq2, ClientReq](left: AuthType { type ClientRequirement = ClientReq1; }, right: AuthType { type ClientRequirement = ClientReq2; }, alternator: WithOut[ClientReq1, ClientReq2, ClientReq]) 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

override def unauthorizedStatus: Status

Takes the LEFT scheme's status when the two sides disagree (the primary scheme decides the failure response). Wrap the combined auth with withUnauthorizedStatus to override both at once.

Takes the LEFT scheme's status when the two sides disagree (the primary scheme decides the failure response). Wrap the combined auth with withUnauthorizedStatus to override both at once.

Attributes

Definition Classes
Source
AuthType.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
def withUnauthorizedStatus(status: Status): AuthType { type ClientRequirement = ClientRequirement; }

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

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

Use this to opt into standard 401 Unauthorized behavior when information hiding is not desired.

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[Request, ClientReq]

Attributes

Source
AuthType.scala