View Source OIDC.ClientConfig behaviour (oidc v0.5.0)

Behaviour to retrieve client configuration at runtime

Client configuration is a map whose keys are those documented in OpenID Connect Dynamic Client Registration 1.0 incorporating errata set 1 , those used being:

  • "client_id"
  • "client_secret": the client secret to authenticate to OAuth2 / OpenID Connect API endpoints when the "token_endpoint_auth_method" is one of:
    • "client_secret_post"
    • "client_secret_basic"
    • "client_secret_jwt" (if a JWK is not used)
  • "id_token_encrypted_response_alg"
  • "id_token_encrypted_response_enc"
  • "id_token_signed_response_alg"
  • "jwks": the client's JWKs (must be maps, will be used calling JOSE.JWK.from_map/1)
  • "jwks_uri": the client's JWKs URI
  • "token_endpoint_auth_method": the client's authentication method for the token endpoint

Link to this section Summary

Callbacks

Returns the client configuration, or nil if not found

Link to this section Types

Specs

t() :: %{optional(String.t()) => any()}

Link to this section Callbacks

Specs

get(client_id :: String.t()) :: t() | nil

Returns the client configuration, or nil if not found