Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

CustomTabs don't redirect to app

  • Ingen svar
  • 0 har dette problem
more options

I'm developing an android app that uses the OAuth2.0 auth code flow to authenticate users. The app launches a CustomTab which in turn, responds with a redirect to the app's redirect scheme. Chrome redirects immediately, closing the CustomTab. Firefox does nothing regardless of the state of the "Open in app" setting.

In order to reproduce this: 1. Create an android app with a redirect scheme 2. Create a webserver that simply redirects to that scheme 3. From the app, open a CustomTab to the webserver 4. Observe the CustomTab not redirect

For a more concrete example, I can reliably reproduce using the sample app from https://github.com/kalinjul/kotlin-multiplatform-oidc and an [Authentik](https://goauthentik.io/) server but I'm sure something like Auth0 would have the same problem.

I'm developing an android app that uses the OAuth2.0 auth code flow to authenticate users. The app launches a CustomTab which in turn, responds with a redirect to the app's redirect scheme. Chrome redirects immediately, closing the CustomTab. Firefox does nothing regardless of the state of the "Open in app" setting. In order to reproduce this: 1. Create an android app with a redirect scheme 2. Create a webserver that simply redirects to that scheme 3. From the app, open a CustomTab to the webserver 4. Observe the CustomTab not redirect For a more concrete example, I can reliably reproduce using the sample app from https://github.com/kalinjul/kotlin-multiplatform-oidc and an [Authentik](https://goauthentik.io/) server but I'm sure something like Auth0 would have the same problem.

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.