feature: OAuth2 Redirect URL
This commit is contained in:
parent
6a7187fb5b
commit
fb7e650267
|
|
@ -117,6 +117,7 @@ type Config struct {
|
|||
AuthHttpHeaderUserGroup string
|
||||
AuthLoginUrl string
|
||||
AuthAllowGuest bool
|
||||
AuthOAuth2RedirectURL string
|
||||
AuthOAuth2Providers map[string]*OAuth2Provider
|
||||
DefaultPermissions PermissionsList
|
||||
AccessControlLists []*AccessControlList
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ func getOAuth2Config(cfg *config.Config, providerName string) (*oauth2.Config, e
|
|||
AuthURL: providerConfig.AuthUrl,
|
||||
TokenURL: providerConfig.TokenUrl,
|
||||
},
|
||||
RedirectURL: "http://localhost:1337/oauth/callback",
|
||||
RedirectURL: cfg.AuthOAuth2RedirectURL,
|
||||
}
|
||||
|
||||
registeredProviders[providerName] = config
|
||||
|
|
|
|||
Loading…
Reference in New Issue