package
Version:
v0.9.6
Opens a new window with list of versions in this module.
Published: Jan 8, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
AuthUserData = "rokmonster.dev/auth/userdata"
)
func NewOAuth2Middleware(engine *gin.Engine, clientId, secret, domains string) *oauth2Middleware
type OAuthClientInfo struct {
ID string `json:"sub"`
Name string `json:"name"`
Email string `json:"email"`
Picture string `json:"picture"`
}
type OAuthCredentions struct {
ClientID string `json:"id"`
Secret string `json:"secret"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.