add middleware to rewrite the /.well-known/openid-configuration endpoint for external idps

This commit is contained in:
Willy Kloucek
2022-08-05 13:48:22 +02:00
parent 4699fba073
commit 94646c8060
4 changed files with 70 additions and 0 deletions
+5
View File
@@ -173,6 +173,11 @@ func loadMiddlewares(ctx context.Context, logger log.Logger, cfg *config.Config)
chimiddleware.RequestID,
middleware.AccessLog(logger),
middleware.HTTPSRedirect,
middleware.OIDCWellKnownRewrite(
logger, cfg.OIDC.Issuer,
cfg.OIDC.RewriteWellKnown,
oidcHTTPClient,
),
// now that we established the basics, on with authentication middleware
middleware.Authentication(