Spell.Authentication behaviour

The Spell.Authentication module specifies the behaviour of WAMP authentication schemes.

Source

Summary

get_details(authentication)

Helper for getting the WAMP HELLO auth details from Spell peer authentication options

schemes_to_lookup(schemes)

Create a lookup from authentication scheme name to module

Functions

get_details(authentication)

Specs:

Helper for getting the WAMP HELLO auth details from Spell peer authentication options.

Source
schemes_to_lookup(schemes)

Specs:

Create a lookup from authentication scheme name to module.

Source

Callbacks

name/0

Specs:

Get the name of the authorization scheme as a string.

Source
response/2

Specs:

  • response(details :: %{}, options :: Keyword.t) :: {:ok, signature :: String.t, extra :: %{}} | {:error, any}

Attempt to authenticate the given options.

This is called in response to CHALLENGE.

Source