cassette v1.2.3 MyCas

Summary

Functions

Returns the configuration used by this Cassette server

Generates a Service Ticket for the given service

Callback implementation for c::application.start/2

Generates a Ticket Granting Ticket

Validates a given ticket against the given service or the service set in the configuration

Functions

child_spec()

Specs

child_spec :: Supervisor.Spec.spec
config()

Specs

config :: Cassette.Config.t

Returns the configuration used by this Cassette server

Will return the default configuration if not provided.

Please refer to Cassette.Config.t for details

st(service)

Specs

st(String.t) :: {:ok, String.t} | {:error, term}

Generates a Service Ticket for the given service

start(, )

Specs

start(term, term) :: GenServer.on_start

Callback implementation for c::application.start/2.

tgt()

Specs

tgt :: {:ok, String.t} | {:error, term}

Generates a Ticket Granting Ticket

validate(ticket, service \\ config.service())

Specs

validate(String.t, String.t) ::
  {:ok, Cassette.User.t} |
  {:error, term}

Validates a given ticket against the given service or the service set in the configuration