React-native-app-auth: Clarification on redirectUrl

Created on 20 Mar 2021  路  1Comment  路  Source: FormidableLabs/react-native-app-auth

Issue

Hi. This is more of a clarification question than an issue. I'm having some difficulty understanding the purpose of the redirectUrl. It seems in all cases it doesn't matter what the redirectUrl is, as long as it matches the auth provider settings and app sheme. On successful auth, the app UI doesn't actually redirect to this url, and instead redirects back to the original screen from where the auth started. Is the AppAuth library handling the redirect url behind the scenes and then redirecting back to the original screen? If so can you confirm we can't actually build a "auth callback" screen in the app?
Many thanks.


Environment

  • Your Identity Provider: Azure B2C
  • Platform that you're experiencing the issue on: iOS
  • Are you using Expo? No

Most helpful comment

Hi @masiddee Sorry for tagging you but i'd love to get some clarification on this. It doesn't seem like the auth flow actually redirects back to deeplink as specified by the redirectUrl. Is this the expected behaviour?

I'm essentially trying to provide an "interstitial" state that happens after the browser is closed. At the moment the auth flow is:

  • Show login screen
  • Press login button
  • Browser opens - user logs in
  • Browser closes and shows login screen again --- i want to handle this state better, I don't want to show the login screen as it shows a "flash" of content, in that the login screen is briefly displayed.

>All comments

Hi @masiddee Sorry for tagging you but i'd love to get some clarification on this. It doesn't seem like the auth flow actually redirects back to deeplink as specified by the redirectUrl. Is this the expected behaviour?

I'm essentially trying to provide an "interstitial" state that happens after the browser is closed. At the moment the auth flow is:

  • Show login screen
  • Press login button
  • Browser opens - user logs in
  • Browser closes and shows login screen again --- i want to handle this state better, I don't want to show the login screen as it shows a "flash" of content, in that the login screen is briefly displayed.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Electrofenster picture Electrofenster  路  4Comments

Jarzka picture Jarzka  路  4Comments

janpieterz picture janpieterz  路  4Comments

Solitaryo picture Solitaryo  路  8Comments

pikooli picture pikooli  路  4Comments