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
ory_kratos lib ory model identity_with_credentials.ex
Raw

lib/ory/model/identity_with_credentials.ex

# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class 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