samly v1.0.0 Samly.Assertion View Source

SAML assertion returned from IDP upon successful user authentication.

The assertion attributes returned by the IdP are available in attributes field as a map. Any computed attributes (using a Plug Pipeline by way of configuration) are available in computed field as map.

The attributes can be accessed directly from attributes or computed maps. The Samly.get_attribute/2 function can be used as well. This function will first look at the computed attributes. If the request attribute is not present there, it will check in attributes next.

Link to this section Summary

Link to this section Types

Link to this type

attr_name_t() View Source
attr_name_t() :: String.t()

Link to this type

attr_value_t() View Source
attr_value_t() :: String.t() | [String.t()]

Link to this type

t() View Source
t() :: %Samly.Assertion{
  attributes: %{required(attr_name_t()) => attr_value_t()},
  authn: map(),
  computed: %{required(attr_name_t()) => attr_value_t()},
  conditions: map(),
  idp_id: String.t(),
  issue_instant: String.t(),
  issuer: String.t(),
  recipient: String.t(),
  subject: Samly.Subject.t(),
  version: String.t()
}