Custom proxy configuration
Review the requirements for a custom authentication proxy used with the request header identity provider. Meeting these requirements prevents header spoofing and ensures OAuth authorization flows work correctly.
Using the mod_auth_gssapi module is a popular way, but not required, to configure the Apache authentication proxy by using the request header identity provider. Other proxies can easily be used if the following requirements are met:
-
Blocks the
X-Remote-Userheader from client requests to prevent spoofing. -
Enforces client certificate authentication in the
RequestHeaderIdentityProviderconfiguration. -
Requires the
X-Csrf-Tokenheader be set for all authentication requests by using the challenge flow. -
Ensures only the
/oauth/authorizeendpoint and subpaths of that endpoint are proxied. Redirects must be rewritten to allow the backend server to send the client to the correct location. -
Requires the proxy URL for
https://<namespace_route>/oauth/authorizeto end with/authorizewith no trailing slash. -
Ensures subpaths of the proxy authorize URL forward to matching subpaths under
https://<namespace_route>/oauth/authorize.
|
|
The |