Skip to content
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

Handle OAuth responses as querystring as well as JSON on Android #171

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

stuartlangridge
Copy link

Twitter, for example, returns OAuth token data as a querystring (x-www-form-urlencoded), not as JSON, so signing in breaks as per #165.
Correct this by catching the JSON parse error and falling back to extracting the parameters we need from the token instead.

exentrich and others added 4 commits September 12, 2017 18:04
(x-www-form-urlencoded), not as JSON, so signing in breaks as per
fullstackreact#165.
Correct this by catching the JSON parse error and falling back to
extracting the parameters we need from the token instead.
Merge in OAuthManager.h iOS fixes
SailingSteve added a commit to SailingSteve/react-native-oauth that referenced this pull request Oct 25, 2017
SailingSteve added a commit to SailingSteve/react-native-oauth that referenced this pull request Oct 25, 2017
SailingSteve added a commit to SailingSteve/react-native-oauth that referenced this pull request Oct 26, 2017
shalin-jasani added a commit to shalin-jasani/react-native-oauth that referenced this pull request Sep 10, 2018
…ani/fullstackreact/react-native-oauth master branch (#1)

* Added fullstackreact#171
and my NSString *clientID fix, which might not be as good as
https://github.com/fullstackreact/react-native-oauth/blob/2f8c8d1483526bbc8a6ca72183c6d11a71538ad3/ios/OAuthManager/OAuthManager.m

* Added fullstackreact#171
and my NSString *clientID fix, which might not be as good as
https://github.com/fullstackreact/react-native-oauth/blob/2f8c8d1483526bbc8a6ca72183c6d11a71538ad3/ios/OAuthManager/OAuthManager.m

* Added fullstackreact#171
and my NSString *clientID fix, which might not be as good as
https://github.com/fullstackreact/react-native-oauth/blob/2f8c8d1483526bbc8a6ca72183c6d11a71538ad3/ios/OAuthManager/OAuthManager.m

* Merge PR 121, fix user agent, fix full screen webview

* Changed if/else statement to avoid React error.

* Fix duplicate RCTMethodInfo import (facebook/react-native#15775) (zoontek/react-native-permissions#137)

* Fix duplicate React library import error conflict w/certain pods

* Pass back response headers over javascript bridge

* Dispatch safariViewController on main queue

The safariViewController dispatch was occuring on another thread.
This sometimes caused app crashes when the view was presented,
in particular if the keyboard had been presented via a TextInput or
other component. The resulting crash complained about
_cachedSystemAnimationFence and the main thread. This has been with
other React Native apps that load a viewController.

Dispatching to present the viewController on the main thread fixes this
issue.

* Fix build issue

* Remove deprecated @OverRide

* Fix: Duplicate RCTMethodInfo while building iOS app

* Fix error for redefinition of RCTMethodInfo

* Ignored dist/

* 2.1.16

* 2.1.17

* 2.1.18
TalentDev00 added a commit to TalentDev00/workspace-react-native-OAuth that referenced this pull request Jan 10, 2020
TalentDev00 added a commit to TalentDev00/workspace-react-native-OAuth that referenced this pull request Jan 10, 2020
TalentDev00 added a commit to TalentDev00/workspace-react-native-OAuth that referenced this pull request Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants