Documentation ¶
Index ¶
Constants ¶
View Source
const AuthKey = "cshauth"
View Source
const CookieName = "Auth"
View Source
const ProviderURI = "https://sso.csh.rit.edu/auth/realms/csh"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSHAuth ¶
type CSHAuth struct {
// contains filtered or unexported fields
}
func (*CSHAuth) AuthCallback ¶
func (*CSHAuth) AuthLogout ¶
func (*CSHAuth) AuthRequest ¶
func (*CSHAuth) AuthWrapper ¶
func (auth *CSHAuth) AuthWrapper(page gin.HandlerFunc) gin.HandlerFunc
type CSHClaims ¶
type CSHClaims struct { Token string `json:"token"` UserInfo CSHUserInfo `"json:user_info"` jwt.StandardClaims }
type CSHUserInfo ¶
type CSHUserInfo struct { Subject string `json:"uuid"` Profile string `json:"profile"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` // contains filtered or unexported fields Username string `json:"preferred_username"` FullName string `json:"name"` Groups []string `json:"groups"` }
Click to show internal directories.
Click to hide internal directories.