question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

https redirect does not redirect to android app

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
andrewdittmercommented, Dec 11, 2020

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.

1reaction
amindadgarcommented, Dec 11, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OAuth redirect with an App Link not working occasionally
In our app, we're using AppAuth-Android to implement this flow. As a redirect URI, we're using an HTTPS scheme link - https://example.com/ ...
Read more >
Android App links not working on the redirect Url [229645259]
We have a app link on url (iii) /applanding?code=xxx, but after we update our compilesdkversion/targetsdkVersion to Android 12, it is not redirecting to...
Read more >
Redirect URI (reply URL) restrictions - Microsoft Entra
A description of the restrictions and limitations on redirect URI (reply URL) format enforced by the Microsoft identity platform.
Read more >
IIS Redirect HTTP to HTTPS - SSL Certificates - Namecheap
IIS Redirect HTTP to HTTPS. Setting up an HTTP/HTTPS redirect in IIS. Once the SSL certificate is installed, your site still remains accessible...
Read more >
Remediation for Intent Redirection Vulnerability - Google Help
If the affected app component does not need to receive Intents from other apps then you can make that app component private by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found