guard v0.11.0 Guard.ApiKeyToken

Link to this section Summary

Functions

Build the default claims for the token

Create the token including serializing and signing

Decode the token. Without verification of the claims within it

Exchange a token from one type to another

Inspect the contents of the token without validation or signature checking

Revoke a token (if appropriate)

Generate a unique id for a token

Verify the claims of a token

Link to this section Functions

Link to this function build_claims(mod, resource, sub, claims, options)

Build the default claims for the token

Callback implementation for Guardian.Token.build_claims/5.

Link to this function create_token(mod, claims, opts)

Create the token including serializing and signing

Callback implementation for Guardian.Token.create_token/3.

Link to this function decode_token(mod, token, opts)

Decode the token. Without verification of the claims within it.

Callback implementation for Guardian.Token.decode_token/3.

Link to this function exchange(mod, old_token, from_type, to_type, opts)

Exchange a token from one type to another

Callback implementation for Guardian.Token.exchange/5.

Link to this function peek(mod, token)

Inspect the contents of the token without validation or signature checking

Callback implementation for Guardian.Token.peek/2.

Link to this function refresh(mod, old_token, opts)

Refresh a token

Callback implementation for Guardian.Token.refresh/3.

Link to this function revoke(mod, claims, token, opts)

Revoke a token (if appropriate)

Callback implementation for Guardian.Token.revoke/4.

Generate a unique id for a token

Callback implementation for Guardian.Token.token_id/0.

Link to this function verify_claims(mod, claims, opts)

Verify the claims of a token

Callback implementation for Guardian.Token.verify_claims/3.