# Functions
AccountFromContext gets the account from the context, which is set by the auth wrapper at the start of a call.
ContextWithAccount sets the account in the context.
Credentials sets the auth credentials.
LoginURL sets the auth LoginURL.
Namespace the service belongs to.
No description provided by the author
NewGenerateOptions from a slice of options.
No description provided by the author
NewTokenOptions from a slice of options.
PrivateKey is the JWT private key.
Provider set the auth provider.
PublicKey is the JWT public key.
Store to back auth.
No description provided by the author
WithExpiry for the token.
WithMetadata for the generated account.
WithNamespace for the generated account.
WithProvider for the generated account.
WithRoles for the generated account.
WithSecret for the generated account.
No description provided by the author
WithType for the generated account.
# Constants
BearerScheme used for Authorization header.
DefaultNamespace used for auth.
MetadataKey is the key used when storing the account in metadata.
SecretCookieName is the name of the cookie which stores the auth secret.
TokenCookieName is the name of the cookie which stores the auth token.
# Variables
No description provided by the author
ErrEncodingToken is returned when the service encounters an error during encoding.
ErrForbidden is returned when a user does not have the necessary roles to access a resource.
ErrInvalidRole is returned when the role provided was invalid.
ErrInvalidToken is returned when the token provided is not valid.
ErrNotFound is returned when a resouce cannot be found.
# Structs
Account provided by an auth provider.
No description provided by the author
No description provided by the author
Resource is an entity such as a user or.
Token can be short or long lived.
No description provided by the author
# Interfaces
Auth providers authentication and authorization.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author