Documentation
¶
Index ¶
Constants ¶
View Source
const ContextKey = "cshauth"
View Source
const CookieName = "Auth"
View Source
const ProviderURI = "https://sso.csh.rit.edu/auth/realms/csh"
Variables ¶
View Source
var StateLookup map[string]string
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) CookieMiddleware ¶
func (auth *Auth) CookieMiddleware() gin.HandlerFunc
func (*Auth) HandleCallback ¶
func (*Auth) HandleLogin ¶
func (*Auth) HandleLogout ¶
func (*Auth) HeaderMiddleware ¶
func (auth *Auth) HeaderMiddleware() gin.HandlerFunc
type Claims ¶
type Claims struct {
jwt.RegisteredClaims
UserInfo
}
Click to show internal directories.
Click to hide internal directories.