WithStatus
zio.blocks.endpoint.AuthType.WithStatus
final case class WithStatus[ClientReq](authType: AuthType { type ClientRequirement = ClientReq; }, unauthorizedStatus: Status) extends AuthType
Attributes
- Source
- AuthType.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait AuthTypeclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Types
Attributes
- Source
- AuthType.scala
Value members
Inherited methods
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
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
Attributes
- Source
- AuthType.scala
In this article