Using the auth0-forwarded-for Header with Auth0 Private Key JWT Authentication
Last Updated:
Overview
Auth0 documentation states to include a client_secret in the /oauth/token request to use the auth0-forwarded-for header. However, the Private Key JSON Web Token (JWT) authentication method does not use a client_secret in this request. Auth0 considers an application that uses Private Key JWT a confidential application, which allows the application to use the auth0-forwarded-for header without sending a client_secret in the /oauth/token request.
Applies To
- Auth0
- Private Key JWT
auth0-forwarded-forheader
Solution
Can the auth0-forwarded-for header be used with Private Key JWT?
Auth0 considers an application that uses Private Key JWT a confidential application in the same manner as an application using a client_secret. Because of this, the auth0-forwarded-for header functions correctly with Private Key JWT, even though the application does not send a client_secret in the /oauth/token request.