You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue with Redirect URIs in Keycloak for a mobile app: extra slashes added
#38635
I’m trying to configure Keycloak for my mobile app, but I’m running into an issue with the redirect URIs. Specifically, when I configure a custom URI like myapp://tabs/home in Keycloak, the mobile app receives an error with a modified URI like myapp:///tabs/home. It seems that an extra slash (///) is being added to the redirect URI.
Here’s what I’ve done so far:
I configured the redirect URI in Keycloak as myapp://tabs/home in the client settings.
When I launch the mobile app, instead of receiving the correct URI myapp://tabs/home, it receives myapp:///tabs/home, which results in an error.
I’ve tried adding wildcards (*) to the URIs, but the issue persists.
Some details:
I’m using Keycloak for authentication via OIDC.
I’ve configured the Custom URL Scheme in the mobile app to handle custom URIs, but I still get the URI with an extra slash.
I’ve also tried:
Simplifying the redirect URI (e.g., myapp://), but I still get the same error.
Checking session and logout settings in Keycloak, but the problem remains.
Questions:
Has anyone experienced a similar issue with redirect URIs in Keycloak?
Is there a setting in Keycloak that might be causing the extra slash to be added? If so, how can I fix it?
Is there something I need to do in the mobile app configuration to correctly handle custom URIs without them being modified?
Any insights or similar experiences would be greatly appreciated! Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I’m trying to configure Keycloak for my mobile app, but I’m running into an issue with the redirect URIs. Specifically, when I configure a custom URI like myapp://tabs/home in Keycloak, the mobile app receives an error with a modified URI like myapp:///tabs/home. It seems that an extra slash (///) is being added to the redirect URI.
Here’s what I’ve done so far:
I configured the redirect URI in Keycloak as myapp://tabs/home in the client settings.
When I launch the mobile app, instead of receiving the correct URI myapp://tabs/home, it receives myapp:///tabs/home, which results in an error.
I’ve tried adding wildcards (*) to the URIs, but the issue persists.
Some details:
I’m using Keycloak for authentication via OIDC.
I’ve configured the Custom URL Scheme in the mobile app to handle custom URIs, but I still get the URI with an extra slash.
I’ve also tried:
Simplifying the redirect URI (e.g., myapp://), but I still get the same error.
Checking session and logout settings in Keycloak, but the problem remains.
Questions:
Has anyone experienced a similar issue with redirect URIs in Keycloak?
Is there a setting in Keycloak that might be causing the extra slash to be added? If so, how can I fix it?
Is there something I need to do in the mobile app configuration to correctly handle custom URIs without them being modified?
Any insights or similar experiences would be greatly appreciated! Thanks in advance!
All reactions