actually use skip user info config option (#7220)

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2023-09-08 13:04:24 +02:00
committed by GitHub
parent 6d2d79ba1d
commit 7867841f7f
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Bugfix: actually pass PROXY_OIDC_SKIP_USER_INFO option to oidc client middleware
https://github.com/owncloud/ocis/pull/7220

View File

@@ -361,6 +361,7 @@ func loadMiddlewares(ctx context.Context, logger log.Logger, cfg *config.Config,
oidc.WithOidcIssuer(cfg.OIDC.Issuer),
oidc.WithJWKSOptions(cfg.OIDC.JWKS),
)),
middleware.SkipUserInfo(cfg.OIDC.SkipUserInfo),
))
authenticators = append(authenticators, middleware.SignedURLAuthenticator{
Logger: logger,