Packages
OpenAPI API client for Ory Kratos, Ory's central identity management solution with hardened authentication, MFA, FIDO2, TOTP, WebAuthn, SSO, profile management, and more.
Current section
Files
Jump to
Current section
Files
lib/ory/model/session_authentication_method.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.7.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Ory.Model.SessionAuthenticationMethod do
@moduledoc """
A singular authenticator used during authentication / login.
"""
@derive Jason.Encoder
defstruct [
:aal,
:completed_at,
:method,
:organization,
:provider
]
@type t :: %__MODULE__{
:aal => Ory.Model.AuthenticatorAssuranceLevel.t | nil,
:completed_at => DateTime.t | nil,
:method => String.t | nil,
:organization => String.t | nil,
:provider => String.t | nil
}
alias Ory.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:aal, :struct, Ory.Model.AuthenticatorAssuranceLevel)
|> Deserializer.deserialize(:completed_at, :datetime, nil)
end
end