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

OpenID Connect id token schema and utilities

Link to this section Summary

Link to this section Types

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()