Forward auth
Last updated
Was this helpful?
Last updated
Was this helpful?
defguard supports integration with popular reverse proxies (tested with and ). This allows you to use defguard to secure services which don't provide their own authorization or OAuth integration.
In order for forward auth to work the services you are trying to protect must be available at URLs within the same base domain as your defguard instance.
For example if you are serving your defguard UI at id.yourdomain.com
, then your services must use other subdomains of yourdomain.com
, e.g. app1.yourdomain.com, `service.yourdomain.com` etc
.
Additionally you have to update your to set the cookies domain to yourdomain.com
.
For brevity all of the examples below assume you are hosting your defguard instance at defguard.yourdomain.com
.
We'll use a basic container as an example service which will be available at whoami.yourdomain.com
.