package
2.10.1
Repository: https://github.com/itzmanish/go-micro.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package provider is an external auth provider e.g oauth.
No description provided by the author
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.
No description provided by the author
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.
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.
PublicKey is the JWT public key.
Revoke access to a resource.
Rules returns all the rules used to verify requests.
No description provided by the author
No description provided by the author
Store to back auth.
Token generated using refresh token or credentials.
Verify an account has access to a resource using the rules.
No description provided by the author
No description provided by the author
No description provided by the author
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.
No description provided by the author
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.
TokenCookieName is the name of the cookie which stores the auth token.

# Variables

No description provided by the author
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.
AuthToken can be short or long lived.
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.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Auth provides authentication and authorization.

# 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