package
0.9.1
Repository: https://github.com/coding-hui/iam.git
Documentation: pkg.go.dev

# Functions

NewAutoStrategy create auto strategy with basic strategy and jwt strategy.
NewBasicStrategy create basic strategy with compare function.
NewJWTStrategy create jwt bearer strategy with GinJWTMiddleware.

# Constants

AuthzAudience defines the value of jwt audience field.

# Structs

AutoStrategy defines authentication strategy which can automatically choose between Basic and Bearer according `Authorization` header.
BasicStrategy defines Basic authentication strategy.
JWTStrategy defines jwt bearer authentication strategy.