AmSaml v0.3.0 AmSaml View Source

Provides auth-related functions.

Link to this section Summary

Functions

Handles the authentication from the saml_response and fields user provides

Provides the redirect url to the saml_provider

Link to this section Functions

Handles the authentication from the saml_response and fields user provides

Returns a map with fields provided in it, note that should exist in order to fetch them from the saml response.

Example

iex> AmSaml.auth(%{"RelayState" => "http://yoursite.com/existing_url/", "SAMLResponse" => "saml_response"}, ["foo", "bar"])
%{"RelayState" => "http://yoursite.com/existing_url/", "SAMLResponse" => "saml_response", "foo" => "foo", "bar" => "bar"}
Link to this function auth_redirect(relay_state) View Source

Provides the redirect url to the saml_provider