Closed zacharywenner closed 3 years ago
This may be fixed from InAppBrowser.
Issue: proyecto26/react-native-inappbrowser#256
Solution: proyecto26/react-native-inappbrowser#262
Temporary workaround you can use (works for me):
https://github.com/proyecto26/react-native-inappbrowser/pull/262#issuecomment-859641814
I'm not sure if this needs to be reinforced from Amplify, if so it can reopen
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication, Analytics, GraphQL API, Storage, Push Notifications, PubSub
Amplify Categories
auth, storage, function, api, analytics, notifications
Environment information
Describe the bug
Since users have upgraded to iOS 14.5, they are complaining of inability to sign in with federatedSignIn. The app just crashes. Android users and non < iOS 14.5 seem to not have issues.
When attempting to sign in with Auth.federatedSignIn() (Google, Apple, Facebook) on iOS 14.5, it throws the error:
The provided scheme is not valid. A scheme should not include special characters such as ":" or "/".' was thrown while invoking openAuth on target RNInAppBrowser with params ( "https://[id].auth.us-west-2.amazoncognito.com/oauth2/authorize?redirect_uri=[scheme]%3A%2F%2F&response_type=code&client_id=xvxxxxxxxxxxxxxxxx&identity_provider=Google&scope=email%20profile%20openid%20aws.cognito.signin.user.admin&state=xxxxxxxxxxxxxxxxxx&code_challenge=xxxxxxxxxxx&code_challenge_method=S256", "[scheme]://", { enableDefaultShare = 0; enableUrlBarHiding = 1; ephemeralWebSession = 0; showTitle = 0; }, 2148, 2149 )
Expected behavior
Expected that it would take to the correct social page to sign in correctly.
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
iPhone 12 Pro Max Simulator
Mobile Operating System
iOS14.5
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
Similar issues stating problems with Xcode 12.5 and iOS 14.5 on Auth0 https://github.com/auth0-samples/auth0-react-native-sample/issues/45 https://github.com/auth0/auth0-oidc-client-net/issues/189 Proposed fix: Since version 12.5 (released on 26 Apr 2021), Xcode no longer accepts an entire URL for the ASWebAuthenticationSession scheme value. This PR extracts the scheme from the URL and uses just that, instead of the whole /authorize URL. https://github.com/auth0/react-native-auth0/pull/369
Another user asking for help on the Amplify Discord: https://discord.com/channels/705853757799399426/707328986077855836/843841513242886194 https://discord.com/channels/705853757799399426/717109738101407866/843839133281550346