Skip to content

Example setup for nginx rev-proxy with oauth2-proxy protected endpoint.

Notifications You must be signed in to change notification settings

busykoala/oauth2-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

OAuth2 Proxy with Nginx Rev-Proxy

This is a brief proof of concept installation to protect a web-server (e.g. backend/frontend microservice) using a oauth2-proxy.

user --- nginx rev-proxy ---(auth request)--- oauth2-proxy --- IdP
                 |
          (if auth success)
                 |
            web-server

The rev-proxy does an auth request to the oauth2-proxy. If there is a valid cookie the oauth2-proxy will allow the request and the call is reversed to web-server (including the auth token incl. e.g. roles). If there is not yet a cookie the oauth2-proxy will redirect to the IdP (e.g. Keycloak) initiating a OIDC flow.

About

Example setup for nginx rev-proxy with oauth2-proxy protected endpoint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published