Documentation
¶
Index ¶
- type CustomClaims
- type JWTAuthz
- func (j *JWTAuthz) AuthCookie(name string, token string) *http.Cookie
- func (j *JWTAuthz) CreateJWTTokenForUser(userid string) string
- func (j *JWTAuthz) DecodeJWTToUser(token string) (string, error)
- func (j *JWTAuthz) GetHash(passportNumber string, password string) []byte
- func (j *JWTAuthz) JWTAuthzMiddleware(log Log) func(next http.Handler) http.Handler
- type Log
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomClaims ¶
type CustomClaims struct { PassportNumber string `json:"passport_number"` jwt.StandardClaims }
Click to show internal directories.
Click to hide internal directories.