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

# Packages

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.
ClientToken sets the auth token to use when making requests.
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.
No description provided by the author
Store to back auth.
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

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.
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
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.

# 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