mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-07 15:52:47 +01:00
Add auth url (#466)
* Add auth url Co-authored-by: Jonas Plum <git@jonasplum.de>
This commit is contained in:
@@ -31,6 +31,7 @@ type Config struct {
|
||||
OIDCAuthEnable bool
|
||||
|
||||
OIDCIssuer string
|
||||
AuthURL string
|
||||
OAuth2 *oauth2.Config
|
||||
UserCreateConfig *UserCreateConfig
|
||||
|
||||
@@ -64,6 +65,9 @@ func (c *Config) Load(ctx context.Context) error {
|
||||
if err == nil {
|
||||
c.provider = provider
|
||||
c.OAuth2.Endpoint = provider.Endpoint()
|
||||
if c.AuthURL != "" {
|
||||
c.OAuth2.Endpoint.AuthURL = c.AuthURL
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user