AuthContext

orchescala.engine.AuthContext
See theAuthContext companion class
object AuthContext

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def get: UIO[AuthContext]

Get the current authentication context

Get the current authentication context

Attributes

def getBearerToken: UIO[Option[String]]

Get the bearer token from the authentication context

Get the bearer token from the authentication context

Attributes

def set(context: AuthContext): UIO[Unit]

Set the authentication context for the current fiber

Set the authentication context for the current fiber

Attributes

def setBearerToken(token: String): UIO[Unit]

Set the bearer token in the authentication context

Set the bearer token in the authentication context

Attributes

def withBearerToken[R, E, A](token: String)(effect: ZIO[R, E, A]): ZIO[R, E, A]

Run a ZIO effect with the given bearer token

Run a ZIO effect with the given bearer token

Attributes

def withContext[R, E, A](context: AuthContext)(effect: ZIO[R, E, A]): ZIO[R, E, A]

Run a ZIO effect with the given authentication context

Run a ZIO effect with the given authentication context

Attributes

Concrete fields

val fiberRef: FiberRef[AuthContext]

FiberRef to store the authentication context for the current fiber

FiberRef to store the authentication context for the current fiber

Attributes