package
1.1.3
Repository: https://github.com/infinitbyte/framework.git
Documentation: pkg.go.dev

# Packages

Package claims collects common jwt types.
No description provided by the author

# Functions

Append new Info to a strategy store.
CtxWithUser Save user information in context.
NewDefaultUser return new default user.
NewTypeError returns InvalidType error.
NewUserInfo implements InfoConstructor and return Info object.
RequestWithUser Save user information in request context.
Revoke delete Info from strategy store.
SetInfoConstructor replace the default InfoConstructor with any function that has the appropriate signature.
User return user information from request context.
UserFromCtx return user information from context.

# Variables

ErrInvalidStrategy is returned by Append/Revoke functions, when passed strategy does not implement Append/Revoke.

# Structs

DefaultUser implement Info interface and provides a simple user information.
TypeError represent invalid type assertion error.

# Interfaces

Cache type describes the requirements for authentication strategies, that cache the authentication decisions.
Info describes a user that has been authenticated to the system.
Option configures Strategy using the functional options paradigm popularized by Rob Pike and Dave Cheney.
Strategy represents an authentication mechanism or method to authenticate users requests.

# Type aliases

Extensions represents additional information to a user.
InfoConstructor define function signature to create new Info object.
OptionFunc implements Option interface.