Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

CustomTabs don't redirect to app

  • Žiadne odpovede
  • 0 má tento problém
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.

Ak chcete odpovedať na príspevky, musíte sa prihlásiť do svojho účtu. Ak ešte nemáte účet, položte novú otázku.