View Source Samly.Assertion (samly v1.4.0)

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.

Summary

Types

@type attr_name_t() :: String.t()
@type attr_value_t() :: String.t() | [String.t()]
@type 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()
}