cassette v1.3.3 Cassette.Server
The GenServer that maintains the CAS cache in its state
Link to this section Summary
Functions
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 this server’s current configuration
Link to this function
init(args)
init({:ok, Cassette.Config.t()}) :: {:ok, Cassette.Server.State.t()}
Initializes the server with the given configuration
Link to this function
reload(server, config)
reload(GenServer.server(), Cassette.Config.t()) :: term()
Changes the internal state configuration to config
Link to this function
st(server, current_tgt, service)
st(GenServer.server(), String.t(), String.t()) :: {:ok, String.t()} | {:error, term()}
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
Link to this function
validate(server, ticket, service)
validate(GenServer.server(), String.t(), String.t()) :: {:ok, Cassette.User.t()} | {:error, term()}
Validates a ticket
for the given service