FormidableLabs / FormidableLabs/react-native-app-auth

AdditionalHeaders not applied on authorize request

Open
#1,036 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

## 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:
```
const config = {
issuer:
authorizeURL,
additionalHeaders: { key: value },
customHeaders: { authorize: { key: value } },
...otherProps
};
```

Is there any workaround for this to send a header in the authorization call?

---

## Environment

* **Platform that you're experiencing the issue on**: `both`
* **Your `react-native` Version**: `e.g. 0.74.5`
* **Your `react-native-app-auth` Version**: `e.g. 8.0.0`
* **Are you using Expo?** No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.