-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdditionalHeaders not applied on authorize request #1036
Comments
The Could you tell me more about what headers you are having problems with and any error messages? What is the OAuth2 provider you are connecting to? Are those headers on the accept list for that provider? |
same issue here |
I am trying to set a Cookie header in order to set a custom cookie in the authorize request to set consent information to the sign in web page. When adding this to both additionalHeaders and customerHeaders From inspecting the network requests for both Android and iOS, I can see this Set-Cookie header being applied on call to ./well-known/openid-configuration, but not to the subsequent call to /authorize. |
Having investigated further, it is applying on the /tokens endpoint, it is just the /authorize endpoint it does not apply to. This is the only call that comes from the webview rather than the app itself, so maybe further changes are needed to pass the header into the /authorize call? |
Issue
I am tyring to set up an authorize call, using serviceConfiguration to define authorization and token endpoints. I additionally want to send a header, but I've noticed that additionalHeaders only applies when on the first call to
./well-known/openid-configuration
, and not to the subsequent call to/authorize
setup:
Is there any workaround for this to send a header in the authorization call?
Environment
both
react-native
Version:e.g. 0.74.5
react-native-app-auth
Version:e.g. 8.0.0
The text was updated successfully, but these errors were encountered: