package
1.0.4
Repository: https://github.com/containerum/auth.git
Documentation: pkg.go.dev

# Functions

DecodeAccessObjects decodes resource access object from database record.
EncodeAccessObjects encodes resource access objects to store in database.
NewJWTIssuerValidator sets up validator for self-contained JSON Web Tokens.
NewMockIssuerValidator sets up a mock object used for testing purposes.
RequestToRecord prepares a value to store in database.

# Constants

KindAccess represents access token.
KindRefresh represents refresh token.

# Structs

ExtensionFields is an advanced fields included to JWT.
IssuedToken describes a token.
JWTIssuerValidatorConfig is config for JSON Web Tokens issuer and validator.
ValidationResult describes token validation result.

# Interfaces

Issuer is interface for creating access and refresh tokens.
IssuerValidator is an interface for token factory.
Validator is interface for validating tokens.

# Type aliases

Kind is a token kind (see OAuth 2 standards).