oauth2_token_manager v0.1.0 OAuth2TokenManager.RefreshToken View Source

Link to this section Summary

Functions

Deletes all access tokens related to a subject or a client (in the client credentials flow)

Introspects a refresh token

Link to this section Functions

Link to this function

delete(rt, iss, client_conf, opts \\ [])

View Source

Specs

Deletes a refresh token

The refresh token is deleted in the local token data base. If the :revoke_on_delete is set, an attempt is made to revoke it on the server (but there is no way to know whether it was successful or not).

Link to this function

delete_all(iss, sub_or_cc, client_conf, opts \\ [])

View Source

Specs

Deletes all access tokens related to a subject or a client (in the client credentials flow)

Link to this function

introspect(rt, iss, client_conf, opts \\ [])

View Source

Specs

Introspects a refresh token

A request is performed to the introspection endpoint of the authorization server if saved metadata is not fresh (:min_introspect_interval option, see OAuth2TokenManager.opts/0).

The response is not saved. Use register/5 if you want to do so.

Link to this function

register(rt, rt_metadata, iss, client_conf, opts \\ [])

View Source

Specs

Registers a refresh token

Link to this function

revoke(rt, iss, client_conf, opts \\ [])

View Source

Specs

Revokes a refresh token

It does not delete the refresh token locally. To do so, refer to delete/4