2014-10-07 14:54:38 -05:00
|
|
|
package setting
|
|
|
|
|
|
|
|
type OAuthInfo struct {
|
2019-12-12 13:00:56 -06:00
|
|
|
ClientId, ClientSecret string
|
|
|
|
Scopes []string
|
|
|
|
AuthUrl, TokenUrl string
|
|
|
|
Enabled bool
|
|
|
|
EmailAttributeName string
|
|
|
|
EmailAttributePath string
|
|
|
|
RoleAttributePath string
|
|
|
|
AllowedDomains []string
|
|
|
|
HostedDomain string
|
|
|
|
ApiUrl string
|
|
|
|
AllowSignup bool
|
|
|
|
Name string
|
|
|
|
TlsClientCert string
|
|
|
|
TlsClientKey string
|
|
|
|
TlsClientCa string
|
|
|
|
TlsSkipVerify bool
|
2014-10-07 14:54:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
type OAuther struct {
|
2016-09-28 08:10:50 -05:00
|
|
|
OAuthInfos map[string]*OAuthInfo
|
2014-10-07 14:54:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
var OAuthService *OAuther
|