FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers
https://commerce.nearform.com/open-source/react-native-app-auth
MIT License
2.04k stars 441 forks source link

Bad Request when trying to authorize #1031

Closed hanzoow closed 3 weeks ago

hanzoow commented 3 weeks ago

Issue

Apple Reject with Bad Request when opening browser

Screenshot-1025-112854

This work fine on our devices but for Apple Reviewer's device and 18.0 Simulator we got

Background Task 3 ("Called by AppName.debug.dylib, from -[RNAppAuth issuer:redirectUrl:clientId:clientSecret:scopes:additionalParameters:serviceConfiguration:skipCodeExchange:connectionTimeoutSeconds:additionalHeaders:useNonce:usePKCE:iosCustomBrowser:prefersEphemeralSession:resolve:reject:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.


Environment

hanzoow commented 3 weeks ago

hi @carbonrobot

Sorry if this disturb you but im under some pressure on timeline for release since im facing this issue when submit to Apple Store.

Can you take a look on this please

carbonrobot commented 3 weeks ago

The request error appears on the b2clogin.com domain, which is outside the RNAA libraries control. You may need to ensure that the reviewers have access to that URL and it is not blocked by firewall, proxy, or another method.

Closing as not related to our library.