package
3.10.13
Repository: https://github.com/micro-community/micro.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package jwt is a jwt implementation of the auth interface.
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.
Generate a new account.
Grant access to a resource.
Inspect a token.
Issuer of the services account.
LoginURL sets the auth LoginURL.
NewGenerateOptions from a slice of options.
NewOptions of auth.
NewTokenOptions from a slice of options.
PrivateKey is the JWT private key.
PublicKey is the JWT public key.
Revoke access to a resource.
Rules returns all the rules used to verify requests.
RulesContext of Rules Context.
RulesNamespace of RulesOption.
Store to back auth.
Token generated using refresh token or credentials.
Verify an account has access to a resource using the rules.
VerifyContext to Context.
VerifyNamespace to Verify Namespace.
WithCredentials of TokenOption.
WithExpiry for the token.
WithIssuer for the generated account.
WithMetadata for the generated account.
WithName for the generated account.
WithProvider for the generated account.
WithScopes for the generated account.
WithSecret for the generated account.
WithToken to refresh token.
WithTokenIssuer to set issuer.
WithType for the generated account.

# Constants

AccessDenied to a resource.
AccessGranted to a resource.
ScopeAccount is the scope applied to a rule to limit to users with any valid account.
ScopeAnyNamespaceAccount is the scope applied to a rule to limit to users with any valid account regardless of issuer.
ScopePublic is the scope applied to a rule to allow access to the public.

# Variables

DefaultAuth implementation.
ErrForbidden is when a user does not have the necessary scope to access a resource.
ErrInvalidToken is when the token provided is not valid.

# Structs

Account provided by an auth provider.
AccountToken can be short or long lived.
GenerateOptions of token.
Options of auth.
Resource is an entity such as a user or.
Rule is used to verify access to a resource.
RulesOptions of rule.
TokenOptions for Token.
VerifyOptions to Verify.

# Interfaces

Auth provides authentication and authorization.

# Type aliases

Access defines the type of access a rule grants.
GenerateOption for token gen.
No description provided by the author
RulesOption of RulesOption.
TokenOption to set Token.
VerifyOption to Verify.