Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash compares a password with a hash.
func HashPassword ¶
HashPassword generates a bcrypt hash of the password.
Types ¶
type GitLabHandler ¶
type GitLabHandler struct {
// contains filtered or unexported fields
}
func NewGitLabHandler ¶
func NewGitLabHandler(cfg *config.Config, db *gorm.DB) *GitLabHandler
func (*GitLabHandler) Callback ¶
func (h *GitLabHandler) Callback(c *gin.Context)
func (*GitLabHandler) Login ¶
func (h *GitLabHandler) Login(c *gin.Context)
type MyCustomClaims ¶
type MyCustomClaims struct {
jwt.RegisteredClaims
}
func ValidateJWT ¶
func ValidateJWT(tokenString, secret string) (*MyCustomClaims, error)
type OIDCClaims ¶
Click to show internal directories.
Click to hide internal directories.