Update the nginx integration documentation to recommend using a named location (@oauth2_signin) for the error_page directive instead of the previous 'error_page 401 =403' approach. The named location pattern ensures the browser receives a proper 302 redirect, which is required for --skip-provider-button=true to work correctly. The previous pattern (error_page 401 =403 /oauth2/sign_in) returned a 403 status with a Location header. Browsers do not auto-follow redirects on 403 responses, causing users to see a 'Found.' link instead of being automatically redirected to the IdP. Changes: - Updated main nginx example to use @oauth2_signin named location - Added 'Understanding the error_page redirect pattern' section - Added warning about the limitations of 'error_page 401 =403' - Updated local test environment (contrib/local-environment/nginx.conf) Refs: #334 Signed-off-by: Stefan Markmann <stefan@markmann.net> |
||
|---|---|---|
| .. | ||
| keycloak | ||
| kubernetes | ||
| traefik | ||
| Makefile | ||
| README.md | ||
| dex.yaml | ||
| docker-compose-alpha-config.yaml | ||
| docker-compose-gitea.yaml | ||
| docker-compose-keycloak.yaml | ||
| docker-compose-nginx.yaml | ||
| docker-compose-traefik.yaml | ||
| docker-compose.yaml | ||
| nginx.conf | ||
| oauth2-proxy-alpha-config.cfg | ||
| oauth2-proxy-alpha-config.yaml | ||
| oauth2-proxy-gitea.cfg | ||
| oauth2-proxy-keycloak.cfg | ||
| oauth2-proxy-nginx.cfg | ||
| oauth2-proxy-traefik.cfg | ||
| oauth2-proxy.cfg | ||
README.md
oauth2-proxy: local-environment
Run make up to deploy local dex, etcd and oauth2-proxy instances in Docker containers. Review the Makefile for additional deployment options.