Appauth-android: https redirect does not redirect to android app

Created on 29 Oct 2020  路  8Comments  路  Source: openid/AppAuth-Android

redirect url is https://mywebsite.com/about

android intent filter is

`

        <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="https"

                android:host="mywebsite.com"

                android:path="/about"/>

        </intent-filter>

`

after auth redirected url is https://mywebsite.com/about?oauth_code=xxx&oauth_verifier=yyy

but this is never redirected to app automatically.
have to manually open the disambiguation dialog and select my app from there. then it works.

how to fix this?

question redirect-handling

All 8 comments

Same here.

same for me as well

I'm having the same issue using a custom uri in manifest

When using an https redirect you need declare an App Link in Android M+ if you want to bypass the default browser behaviour.

My recommendation though is to declare a separate client in your identity provider for the mobile integration and use a custom redirect scheme instead.

Thanks. I will aim to try this out later this week.

My issue was different to the issue described by OP. After adding a path to my intent filter and appending the path in my redirect url I was able to receive callback.

When using an https redirect you need declare an App Link in Android M+ if you want to bypass the default browser behaviour.

My recommendation though is to declare a separate client in your identity provider for the mobile integration and use a custom redirect scheme instead.

Thanks Agologan for your time 馃尮
After spending about two weeks on this it seems there's an issue in my authenticator server so I contacted my associates to resolve the issue.

Glad to hear you managed to sort it out.

Was this page helpful?
0 / 5 - 0 ratings