package
0.0.0-20241223094030-31fb1cc747fe
Repository: https://github.com/na4ma4/jwt-auth-registry.git
Documentation: pkg.go.dev
# Functions
NewAuthServer creates a new AuthServer.
# Constants
TokenSeparator is the value which separates the header, claims, and signature in the compact serialization of a JSON Web Token.
# Structs
AuthorizationRequest is the authorization request data.
AuthServer is the token authentication server.
ClaimSet describes the main section of a JSON Web Token.
DefaultAuthenticator makes authentication successful by default.
DefaultAuthorizer makes authorization successful by default.
Header describes the header section of a JSON Web Token.
Option is the registry token authorization server configuration options.
ResourceActions stores allowed actions on a named and typed resource.
Token rep the JWT token that'll be created when authentication/authorizations succeeds.
TokenOption is the options used on a token.
# Interfaces
Authenticator should be implemented to perform authentication.
Authorizer should be implemented to perform authorization.
TokenGenerator an implementation should create a valid JWT according to the spec here https://github.com/docker/distribution/blob/1b9ab303a477ded9bdd3fc97e9119fa8f9e58fca/docs/spec/auth/jwt.md a default implementation that follows the spec is used when it is not provided.