nova_auth_oidc_introspect (nova_auth_oidc v0.1.3)

View Source

Token introspection (RFC 7662). Checks if an access token is active at the provider (e.g., not revoked or expired).

Usage

case nova_auth_oidc_introspect:introspect(my_oidc_config, authentik, AccessToken) of
    {ok, #{active := true}} -> ok;
    {ok, #{active := false}} -> revoked;
    {error, Reason} -> handle_error(Reason)
end

Summary

Functions

Introspect an access token at the provider's introspection endpoint.

Functions

introspect(AuthMod, Provider, AccessToken)

-spec introspect(module(), atom(), binary()) -> {ok, map()} | {error, term()}.

Introspect an access token at the provider's introspection endpoint.