OpenIDConnect.Document (OpenID Connect v1.0.0)

View Source

Summary

Functions

This module caches OIDC documents and their JWKs for a limited timeframe, which is min(@refresh_time, document.remaining_lifetime).

Fetches an OIDC document from cache, falling back to fetching from the remote resource

Types

t()

@type t() :: %OpenIDConnect.Document{
  authorization_endpoint: term(),
  claims_supported: term(),
  end_session_endpoint: term(),
  expires_at: term(),
  jwks: term(),
  raw: term(),
  response_types_supported: term(),
  token_endpoint: term(),
  userinfo_endpoint: term()
}

Functions

%OpenIDConnect.Document{}

(struct)

This module caches OIDC documents and their JWKs for a limited timeframe, which is min(@refresh_time, document.remaining_lifetime).

fetch_document(uri)

@spec fetch_document(String.t()) :: {:ok, t()} | {:error, term()}

Fetches an OIDC document from cache, falling back to fetching from the remote resource