# Functions
AuthFuncAuthenticated returns an AuthFunc that requires the identity is authenticated.
AuthFuncExpression returns an AuthFunc that evaluates the given expression.
AuthFuncRequireRealm returns an AuthFunc that requires the identity has the given realm.
AuthFuncRequireSchema returns an AuthFunc that requires the identity has the given schema.
AuthFuncRequireScope returns an AuthFunc that requires the identity has the given scope.
Authorize authorizes the identity in the given context with the given auth functions.
IdentityFromContext returns the identity from the given context.
MaskString masks the given string.
NewClientAuthorizer returns a new ClientAuthorizer with the given credentials.
NewIdentity returns a new Identity with the given schema and token.
NewJsonWebTokenStore creates a new JSON Web Token (JWT) token store.
NewRedisTokenStore creates a new Redis token store.
NewServerAuthorizer returns a new ServerAuthorizer with the given token stores.
NewToken creates a new token.
NewTokenStore returns a new TokenStore with the given config.
RandString randomly generates l length string from the given symbols.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrExpiredToken is returned when the token is expired.
ErrInvalidAuthExprOutput is returned when the authorization expression does not return a boolean.
ErrInvalidToken is returned when the token is invalid.
ErrInvalidTokenSignature is returned when the token signature is invalid.
ErrInvalidTokenType is returned when the token type is invalid.
ErrPermissionDenied is returned when the user does not have permission to perform the operation.
ErrUnauthenticated is returned when the user is not authenticated.
ErrUnsupportedOperation is returned when the operation is not supported.
ErrUnsupportedSigningMethod is returned when the signing method is not supported.
ErrUnsupportedTokenType is returned when the token type is not supported.
No description provided by the author
No description provided by the author
# Structs
ClientAuthorizer provides client-side grpc interceptors for authorization.
ExtendedClaims is a custom claims type that extends the default claims with additional claims.
Identity represents the result of authentication.
InMemoryTokenStore is an in-memory token store.
JsonWebTokenStore is a token store that uses JSON Web Tokens (JWT) to store tokens.
RedisTokenStore is a token store that uses Redis to store tokens.
ServerAuthorizer provides server-side grpc interceptors for authorization.
Token is used to authenticate a user.