actually use skip user info config option (#7216)

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2023-09-05 12:57:01 +02:00
committed by GitHub
parent f620757e26
commit 3bf5e5efa4

View File

@@ -367,6 +367,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,