guard v0.12.7 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
Refresh a token
Revoke a token (if appropriate)
Generate a unique id for a token
Verify the claims of a token
Link to this section Functions
build_claims(mod, resource, sub, claims, options)
Build the default claims for the token
Callback implementation for Guardian.Token.build_claims/5
.
create_token(mod, claims, opts)
Create the token including serializing and signing
Callback implementation for Guardian.Token.create_token/3
.
decode_token(mod, token, opts)
Decode the token. Without verification of the claims within it.
Callback implementation for Guardian.Token.decode_token/3
.
exchange(mod, old_token, from_type, to_type, opts)
Exchange a token from one type to another
Callback implementation for Guardian.Token.exchange/5
.
peek(mod, token)
Inspect the contents of the token without validation or signature checking
Callback implementation for Guardian.Token.peek/2
.
refresh(mod, old_token, opts)
Refresh a token
Callback implementation for Guardian.Token.refresh/3
.
revoke(mod, claims, token, opts)
Revoke a token (if appropriate)
Callback implementation for Guardian.Token.revoke/4
.
token_id()
Generate a unique id for a token
Callback implementation for Guardian.Token.token_id/0
.
verify_claims(mod, claims, opts)
Verify the claims of a token
Callback implementation for Guardian.Token.verify_claims/3
.