nova_auth_oidc_jwt (nova_auth_oidc v0.1.1)

View Source

Validates OIDC ID tokens (JWTs) against provider configuration.

Extracts and validates the payload from a JWT, maps claims using the configured claims mapping, and returns an actor map.

Summary

Functions

Validate an OIDC ID token for the given provider.

Functions

validate_token(ConfigMod, Provider, Token)

-spec validate_token(module(), atom(), binary()) -> {ok, nova_auth:actor()} | {error, term()}.

Validate an OIDC ID token for the given provider.

Decodes the JWT payload, verifies basic structure, and maps claims according to the OIDC configuration module's claims_mapping.

Returns {ok, Actor} with mapped claims or {error, Reason}.