cassette v1.2.6 Cassette.Server
The GenServer that maintains the CAS cache in its state
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
Types
config_request :: {:config}
reload_reply :: :ok
reload_request :: {:reload, Cassette.Config.t}
st_request :: {:st, String.t, String.t, non_neg_integer}
tgt_request :: {:tgt, non_neg_integer}
validate_reply ::
{:ok, Cassette.User.t} |
{:error, term}
validate_request :: {:validate, String.t, String.t, non_neg_integer}
Functions
Specs
init({:ok, Cassette.Config.t}) :: {:ok, Cassette.Server.State.t}
Initializes the server with the given configuration
Generates Service Ticket based on the configuration of the server
and the given tgt
Specs
tgt(pid) :: {:ok, String.t} | {:error, term}
Generates a Ticket Granting Ticket based on the configuration of the server
Specs
validate(pid, String.t, String.t) ::
{:ok, Cassette.User.t} |
{:error, term}
Validates a ticket
for the given service