Cassette.Server.State (cassette v1.5.3)

Struct to represent the internal state of the Cassette.Server

Link to this section Summary

Functions

Clears the tgt

Removes the given {service, ticket} pair from the state

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

Specs

st() :: {String.t(), non_neg_integer()}

Specs

t() :: %Cassette.Server.State{
  config: Cassette.Config.t(),
  sts: %{required(String.t()) => st()},
  tgt: tgt(),
  validations: %{required({String.t(), String.t()}) => validation()}
}

Specs

tgt() :: {:tgt, non_neg_integer(), String.t()}
Link to this type

validation()

Specs

validation() :: {Cassette.User.t(), non_neg_integer()}

Link to this section Functions

Link to this function

clear_tgt(state)

Specs

clear_tgt(t()) :: t()

Clears the tgt

Link to this function

delete_validation(state, arg)

Specs

delete_validation(t(), {String.t(), String.t()}) :: t()

Removes the given {service, ticket} pair from the state

Link to this function

put_st(state, service, arg)

Specs

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)

Specs

put_tgt(t(), String.t(), non_neg_integer()) :: t()

Updates the tgt cache

Link to this function

put_validation(state, arg1, arg2)

Specs

put_validation(
  t(),
  {String.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