cassette v1.5.0 Cassette.Server
The GenServer that maintains the CAS cache in its state
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Returns this server’s current configuration
Initializes the server with the given configuration
Changes the internal state configuration to config
Generates Service Ticket based on the configuration of the server
and the
given tgt
Generates a Ticket Granting Ticket based on the configuration of the server
Validates a ticket
for the given service
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Returns this server’s current configuration
init({:ok, Cassette.Config.t()}) :: {:ok, Cassette.Server.State.t()}
Initializes the server with the given configuration
reload(GenServer.server(), Cassette.Config.t()) :: term()
Changes the internal state configuration to config
st(GenServer.server(), String.t(), String.t(), timeout()) :: {:ok, String.t()} | {:error, term()}
Generates Service Ticket based on the configuration of the server
and the
given tgt
tgt(GenServer.server(), timeout()) :: {:ok, String.t()} | {:error, term()}
Generates a Ticket Granting Ticket based on the configuration of the server
validate(GenServer.server(), String.t(), String.t(), timeout()) :: {:ok, Cassette.User.t()} | {:error, term()}
Validates a ticket
for the given service