Documentation ¶
Index ¶
- func CheckPassword(hash []byte, password string) error
- func GetAuthorization(ctx context.Context) (*jwt.Token, error)
- func GetScopes(token *jwt.Token) ([]string, error)
- func GetSubject(token *jwt.Token) (string, error)
- func GetTokenID(token *jwt.Token) (string, error)
- func HashPassword(password string) []byte
- func Middleware(ipId, domain string) *jwtmiddleware.JWTMiddleware
- func New(db models.DBType) http.Handler
- func SecureToken() string
- type CustomClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
CheckPassword checks to see if the password matches the hashed password.
func GetAuthorization ¶
func GetSubject ¶
func GetTokenID ¶
func HashPassword ¶
func Middleware ¶
func Middleware(ipId, domain string) *jwtmiddleware.JWTMiddleware
func SecureToken ¶
func SecureToken() string
Types ¶
type CustomClaims ¶
type CustomClaims struct { Scope string `json:"scope"` jwt.StandardClaims }
Click to show internal directories.
Click to hide internal directories.