Documentation ¶
Overview ¶
Package auth provides authentication implementation(s) that can be used to limit access to the (gRPC) server. Specific implementations are in each sub package.
Index ¶
Constants ¶
View Source
const (
MetaKeyAuthorization = "authorization"
)
Meta* are the keys to metadata.
Variables ¶
View Source
var ( // Server Side ErrMissingMetadata = status.Error(codes.InvalidArgument, "missing metadata") ErrMissingAuthorization = status.Error(codes.InvalidArgument, "missing authorization") ErrCorruptedAuthorization = status.Error(codes.InvalidArgument, "unexpected number of authentication values") ErrFailedToAuthenticate = status.Error(codes.Unauthenticated, "unable to authenticate user") ErrCannotAuthorize = status.Error(codes.FailedPrecondition, "cannot authorize message") )
Err* are sentinel errors
Functions ¶
This section is empty.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package jwts provides various different JWT tokens.
|
Package jwts provides various different JWT tokens. |
Package tokens provides an implementation to fetch and manage OAuth2 tokens.
|
Package tokens provides an implementation to fetch and manage OAuth2 tokens. |
seeds
Package seeds provides a way to "seed" a token source; especially one that relies on caching.
|
Package seeds provides a way to "seed" a token source; especially one that relies on caching. |
storage
Package storage provides storage for the cachable token interface.
|
Package storage provides storage for the cachable token interface. |
Click to show internal directories.
Click to hide internal directories.