cassette v1.2.0 Cassette.Server.State

Struct to represent the internal state of the Cassette.Server

Summary

Functions

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

Types

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

Functions

put_st(state, service, arg)

Specs

put_st(t, String.t, st) :: t

Updates the st cache for the given service

put_tgt(state, tgt, expires_at)

Specs

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

Updates the tgt cache

put_validation(state, arg1, arg2)

Specs

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