Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

CustomTabs don't redirect to app

  • Відповіді відсутні
  • 0 мають цю проблему
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.

Щоб відповідати на повідомлення, ви повинні ввійти у свій обліковий запис. Поставте нове питання, якщо ви ще не маєте облікового запису.