-
Notifications
You must be signed in to change notification settings - Fork 462
Description
Hello,
I'm trying to follow the guide on how to setup the capturing of the redirect URI so I can continue my app after obtaining the code from the server. I cannot get it to work on neither Android nor iOS. Not sure what I'm doing wrong, but I cannot use a custom URI scheme so my redirect URI has to be something like "http://localhost:9876/". For example in Android, if I pass "http://localhost:9876/" as the redirect URI to authorize, and I have the following in my manifest:
<activity
android:name="net.openid.appauth.RedirectUriReceiverActivity"
tools:node="replace">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="http"
android:host="localhost"
android:port="9876"
android:path="/"/>
</intent-filter>
</activity>
It just tries to open the url ("http://localhost:9876/") on the same webview and nothing is actually captured. I tried without the port, I tried different paths, I can't get anything to work.
I have the exact same issue on iOS, and I don't know how to setup the URL in the plist file to capture a url without a non-http scheme.
Am I missing something? Is there a way to debug this?
Thanks.
Environment
- Your Identity Provider: Google, Dropbox, Box
- Platform that you're experiencing the issue on: iOS and Android
- Are you using Expo?: No