package
1.0.1-rc2
Repository: https://github.com/stack-labs/stack.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AccountFromContext gets the account from the context, which is set by the auth wrapper at the start of a call.
Addrs is the auth addresses to use.
ClientToken sets the auth token to use when making requests.
ContextWithAccount sets the account in the context.
Credentials sets the auth credentials.
Enable the auth component.
Namespace the service belongs to.
NewGenerateOptions from a slice of options.
No description provided by the author
NewTokenOptions from a slice of options.
PrivateKey is the JWT private key.
PublicKey is the JWT public key.
No description provided by the author
Store to back auth.
Verify an account has access to a resource using the rules provided.
No description provided by the author
WithClient sets the client to use when making requests.
No description provided by the author
WithExpiry for the token.
WithMetadata for the generated account.
WithProvider for the generated account.
WithScopes for the generated account.
WithSecret for the generated account.
No description provided by the author
WithType for the generated account.

# Constants

AccessDenied to a resource.
AccessGranted to a resource.
BearerScheme used for Authorization header.
ScopeAccount is the scope applied to a rule to limit to users with any valid account.
ScopePublic is the scope applied to a rule to allow access to the public.

# Variables

ErrForbidden is when a user does not have the necessary scope to access a resource.
ErrInvalidToken is when the token provided is not valid.
No description provided by the author

# Structs

Account provided by an auth provider.
No description provided by the author
No description provided by the author
No description provided by the author
Resource is an entity such as a user or.
Rule is used to verify access to a resource.
Token can be short or long lived.
No description provided by the author
No description provided by the author

# Interfaces

Auth provides authentication and authorization.
Rules manages access to resources.

# Type aliases

Access defines the type of access a rule grants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author