diff --git a/internal/webserver/authenticators/oidc.go b/internal/webserver/authenticators/oidc.go index d3ebc546..540fa17b 100644 --- a/internal/webserver/authenticators/oidc.go +++ b/internal/webserver/authenticators/oidc.go @@ -72,13 +72,13 @@ func (o *Oidc) Init() error { u.Path = path.Join(u.Path, "/authorise/oidc/") log.Println("OIDC callback: ", u.String()) - log.Println("Connecting to OIDC provider: ", o.details.IssuerURL) - o.details, err = data.GetOidc() if err != nil { return err } + log.Println("Connecting to OIDC provider: ", o.details.IssuerURL) + o.provider, err = rp.NewRelyingPartyOIDC(o.details.IssuerURL, o.details.ClientID, o.details.ClientSecret, u.String(), []string{"openid"}, options...) if err != nil { return err