7
Views
0
Comments
[OIDC Mobile Client] OIDC Mobile Client Callback Returns Empty Code & State in Enterprise Environment
oidc-mobile-client
Mobile icon
Forge asset by João Barata

Hi all,

I'm currently implementing an OIDC (OpenID Connect) login flow for a mobile application built in OutSystems. Everything works perfectly in my Personal Environment — after the authentication step, the callback screen receives both the authorization code and the state as expected.

However, when I move the same mobile app to our Enterprise Environment, the callback redirect screen opens, but the code and state parameters are empty or missing.

What Happens:

  • In Personal Environment:

    • Callback screen receives code and state correctly.

    • Flow continues and user is redirected to the Home screen.

  • In Enterprise Environment:

    • User is redirected to the callback screen.

    • But code and state are empty.

    • Because of this, the app cannot proceed, and the flow is stuck on the callback screen — user is not navigated to the Home screen.

What I've Done:

  • Using OutSystems mobile app .

  • Redirect URI is something like: myapp://callback.

  • The redirect URI is registered correctly in the identity provider (Auth0).

Things I’ve Checked:

  • Identity provider configuration — identical for both environments.

  • OIDC endpoints — correct for the tenant.

Questions:

  1. Has anyone else experienced this discrepancy between Personal and Enterprise environments?

  2. Any known issues with InAppBrowser or OutSystems handling of deep links in Enterprise environments?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.