You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add support for sending additional http headers on iOS
* Update readme with new config parameter
* Correct implementation according to specification in tests
* Add tests for iOS specific additionalHeaders parameter
Also put some of the existing tests into correct group.
* State validation rules in tests for additionalHeaders parameter
* Validate additional headers
* Correct readme
* Format code
* Updated Github config example to include additionalHeaders property
Co-authored-by: Mansoor Siddeeq <mansoor@msiddeeq.com>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,7 @@ with optional overrides.
129
129
-**authorize** - (`{ [key: string]: value }`) headers to be passed during authorization request.
130
130
-**token** - (`{ [key: string]: value }`) headers to be passed during token retrieval request.
131
131
-**register** - (`{ [key: string]: value }`) headers to be passed during registration request.
132
+
-**additionalHeaders** - (`{ [key: string]: value }`) _IOS_ you can specify additional headers to be passed for all authorize, refresh, and register requests.
132
133
-**useNonce** - (`boolean`) _IOS_ (default: true) optionally allows not sending the nonce parameter, to support non-compliant providers
133
134
-**usePKCE** - (`boolean`) (default: true) optionally allows not sending the code_challenge parameter and skipping PKCE code verification, to support non-compliant providers.
134
135
-**skipCodeExchange** - (`boolean`) (default: false) just return the authorization response, instead of automatically exchanging the authorization code. This is useful if this exchange needs to be done manually (not client-side)
Copy file name to clipboardExpand all lines: docs/config-examples/github.md
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,5 @@
1
1
# GitHub
2
2
3
-
** This is Android Only **
4
-
5
-
Read more about iOS restrictions [here](https://github.com/FormidableLabs/react-native-app-auth/issues/194).
6
-
7
3
Go to [OAuth Apps](https://github.com/settings/developers) to create your app.
8
4
9
5
For the Authorization callback URL, choose something like `com.myapp://oauthredirect` and ensure you use `com.myapp` in your `appAuthRedirectScheme` in `android/app/build.gradle`.
0 commit comments