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/login_flow.ex
# NOTE: This file is auto generated by OpenAPI Generator 6.2.1 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Ory.Model.LoginFlow do
@moduledoc """
This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued.
"""
@derive [Poison.Encoder]
defstruct [
:active,
:created_at,
:expires_at,
:id,
:issued_at,
:oauth2_login_challenge,
:oauth2_login_request,
:refresh,
:request_url,
:requested_aal,
:return_to,
:type,
:ui,
:updated_at
]
@type t :: %__MODULE__{
:active => Ory.Model.IdentityCredentialsType.t | nil,
:created_at => DateTime.t | nil,
:expires_at => DateTime.t,
:id => String.t,
:issued_at => DateTime.t,
:oauth2_login_challenge => String.t | nil,
:oauth2_login_request => Ory.Model.OAuth2LoginRequest.t | nil,
:refresh => boolean() | nil,
:request_url => String.t,
:requested_aal => Ory.Model.AuthenticatorAssuranceLevel.t | nil,
:return_to => String.t | nil,
:type => String.t,
:ui => Ory.Model.UiContainer.t,
:updated_at => DateTime.t | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.LoginFlow do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:active, :struct, Ory.Model.IdentityCredentialsType, options)
|> deserialize(:oauth2_login_request, :struct, Ory.Model.OAuth2LoginRequest, options)
|> deserialize(:requested_aal, :struct, Ory.Model.AuthenticatorAssuranceLevel, options)
|> deserialize(:ui, :struct, Ory.Model.UiContainer, options)
end
end