Add auth url (#466)

* Add auth url

Co-authored-by: Jonas Plum <git@jonasplum.de>
This commit is contained in:
Jonas Plum
2022-10-01 03:05:07 +02:00
committed by GitHub
parent 5b5bba30ca
commit a50133f6fd
2 changed files with 19 additions and 2 deletions

View File

@@ -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
}