cassette v1.3.3 Cassette.Server.State

Struct to represent the internal state of the Cassette.Server

Link to this section Summary

Functions

Clears the tgt

Updates the st cache for the given service

Updates the tgt cache

Updates the validation cache for the given {service, ticket} pair with the returned user

Link to this section Types

Link to this type st()
st() :: {String.t(), non_neg_integer()}
Link to this type t()
t() :: %Cassette.Server.State{config: Cassette.Config.t(), sts: %{optional(String.t()) => st()}, tgt: tgt(), validations: %{optional({String.t(), String.t()}) => validation()}}
Link to this type tgt()
tgt() :: {:tgt, non_neg_integer(), String.t()}
Link to this type validation()
validation() :: {Cassette.User.t(), non_neg_integer()}

Link to this section Functions

Link to this function clear_tgt(state)
clear_tgt(t()) :: t()

Clears the tgt

Link to this function put_st(state, service, arg)
put_st(t(), String.t(), st()) :: t()

Updates the st cache for the given service

Link to this function put_tgt(state, tgt, expires_at)
put_tgt(t(), String.t(), non_neg_integer()) :: t()

Updates the tgt cache

Link to this function put_validation(state, arg1, arg2)
put_validation(t(), String.t(), {non_neg_integer(), Cassette.User.t() | nil}) :: t()

Updates the validation cache for the given {service, ticket} pair with the returned user