-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Labels
enhancementAn enhancement or improvement to the SDK that could not be otherwise categorized as a new featureAn enhancement or improvement to the SDK that could not be otherwise categorized as a new feature
Description
Description
There are times when it is required to send custom headers or parameters on authorization requests. For example, the auth0-forwarded-for header is recommended to avoid a common issue with anomaly detection, which is discussed further in #302
Some background:
AuthRequestextendsRequestAuthRequestdoes not extendCustomizableRequestTokenRequestis the only implementor ofAuthRequestTokenRequestdoes extendCustomizableRequest, which allows setting custom headers, parameters, and body.
Rather than chase these issues continuously, instead we should resolve this issue for the specific issue raised in #302, as well as for other needs to configure the request.
Reproduction
Call any API that returns an AuthRequest, and note that the request cannot be customized without downcasting to TokenRequest or CustomizableRequest.
Environment
auth0-java version 1.23.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementAn enhancement or improvement to the SDK that could not be otherwise categorized as a new featureAn enhancement or improvement to the SDK that could not be otherwise categorized as a new feature