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/identity_with_credentials.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.IdentityWithCredentials do
@moduledoc """
Create Identity and Import Credentials
"""
@derive [Poison.Encoder]
defstruct [
:oidc,
:password
]
@type t :: %__MODULE__{
:oidc => Ory.Model.IdentityWithCredentialsOidc.t | nil,
:password => Ory.Model.IdentityWithCredentialsPassword.t | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.IdentityWithCredentials do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:oidc, :struct, Ory.Model.IdentityWithCredentialsOidc, options)
|> deserialize(:password, :struct, Ory.Model.IdentityWithCredentialsPassword, options)
end
end