Documentation
¶
Index ¶
- func ComparePasswords(hashed string, plain []byte) bool
- func CreateJWT(userID uuid.UUID, cache *redis.Client) (string, error)
- func GetUserIdFromContext(ctx context.Context) string
- func HashPasswords(password string) (string, error)
- func InitializeKeys(cache *redis.Client) error
- func JWKSHandler(cache *redis.Client) http.HandlerFunc
- func RefreshToken(cache *redis.Client) http.HandlerFunc
- func WithJWTAuth(handlerFunc http.HandlerFunc, cache *redis.Client) http.HandlerFunc
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePasswords ¶
func GetUserIdFromContext ¶
func HashPasswords ¶
func InitializeKeys ¶
func InitializeKeys(cache *redis.Client) error
func JWKSHandler ¶
func JWKSHandler(cache *redis.Client) http.HandlerFunc
func RefreshToken ¶
func RefreshToken(cache *redis.Client) http.HandlerFunc
func WithJWTAuth ¶
func WithJWTAuth(handlerFunc http.HandlerFunc, cache *redis.Client) http.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.