View Source Boruta.Oauth.IdToken (Boruta core v2.1.5)

OpenID Connect id token schema and utilities

Link to this section Summary

Link to this section Types

Specs

claims() :: %{required(String.t()) => String.t() | claims()}

Specs

tokens() :: %{
  optional(:code) => %Boruta.Oauth.Token{
    client: Boruta.Oauth.Client.t(),
    code_challenge: term(),
    code_challenge_hash: term(),
    code_challenge_method: term(),
    expires_at: term(),
    inserted_at: DateTime.t(),
    nonce: term(),
    redirect_uri: term(),
    refresh_token: term(),
    resource_owner: term(),
    revoked_at: term(),
    scope: String.t(),
    state: term(),
    sub: String.t(),
    type: term(),
    value: term()
  },
  optional(:token) => %Boruta.Oauth.Token{
    client: Boruta.Oauth.Client.t(),
    code_challenge: term(),
    code_challenge_hash: term(),
    code_challenge_method: term(),
    expires_at: term(),
    inserted_at: DateTime.t(),
    nonce: term(),
    redirect_uri: term(),
    refresh_token: term(),
    resource_owner: term(),
    revoked_at: term(),
    scope: String.t(),
    state: term(),
    sub: String.t(),
    type: term(),
    value: term()
  },
  optional(:base_token) => %Boruta.Oauth.Token{
    client: Boruta.Oauth.Client.t(),
    code_challenge: term(),
    code_challenge_hash: term(),
    code_challenge_method: term(),
    expires_at: term(),
    inserted_at: DateTime.t(),
    nonce: term(),
    redirect_uri: term(),
    refresh_token: term(),
    resource_owner: term(),
    revoked_at: term(),
    scope: String.t(),
    state: term(),
    sub: String.t(),
    type: term(),
    value: term()
  }
}

Link to this section Functions

Specs

generate(tokens :: tokens(), nonce :: String.t()) ::
  id_token :: Boruta.Oauth.Token.t()

Specs

hash_alg(Boruta.Oauth.Client.t()) :: hash_alg :: atom()
Link to this function

hash_binary_size(client)

View Source

Specs

hash_binary_size(Boruta.Oauth.Client.t()) :: binary_size :: integer()

Specs

signature_algorithms() :: [atom()]

Specs

signature_type(Boruta.Oauth.Client.t()) :: signature_type :: atom()