2014-10-07 14:54:38 -05:00
|
|
|
package setting
|
|
|
|
|
|
|
|
type OAuthInfo struct {
|
|
|
|
ClientId, ClientSecret string
|
|
|
|
Scopes []string
|
|
|
|
AuthUrl, TokenUrl string
|
2014-10-07 16:56:37 -05:00
|
|
|
Enabled bool
|
2015-04-06 07:16:22 -05:00
|
|
|
AllowedDomains []string
|
2016-10-28 05:00:47 -05:00
|
|
|
HostedDomain string
|
2015-04-15 03:31:56 -05:00
|
|
|
ApiUrl string
|
2015-04-09 20:15:19 -05:00
|
|
|
AllowSignup bool
|
2016-09-28 08:10:50 -05:00
|
|
|
Name string
|
2016-10-11 01:51:44 -05:00
|
|
|
TlsClientCert string
|
|
|
|
TlsClientKey string
|
|
|
|
TlsClientCa string
|
2017-09-28 05:10:59 -05:00
|
|
|
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
|