Hi all, I think I’m doing something wrong, but I cannot understand where I'm wrong. I’ve set up OIDC Connection for my project, it works perfectly On WEB but when I try to login in Native applications i see that the Authentication process goes well but I’m understanding what I should do after the login. I've set as homepage a nanoflow that's using “DeepLinkHome” microflow to understand if a Deeplink is being invoked (configurations such of changing deepling login location and other stuff written in the docs already done). if it's not detecting a deeplink, we’ll redirect anonymous users to the login page, otherwise we’ll continue with the execution (and I believe here we are having the problem) When I test the app on MakeItNative: I am redirected in a page like this "http://localhost:8080/oauth/v2/callback?state=b9cba826-9749-4d88-b9bd-0425fd5d5c79&code=4%2F0AX4XfWjHlO6slwvdeLWZsWQ2AyxLYnqSuhyVRfYE01dl6BScVIoAf-x9Mhns-ReYPIbbHg&scope=email+profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&authuser=0&hd=************&prompt=consent” I feel that I just need to add some handling in the other branch of the Nanoflow. But I'm not finding any reference to what I should do
The mobile callback process goes like:
redirect to mendix app server (/oauth/v2/callback)
the server redirects you to a custom url scheme registered to the native app (default: makeitnative://oidc/callback…)
the code is processed by the native deep link handler and exchanged for a user session
Your problem is that your app’s current url is “localhost”, which your mobile app can’t access since “localhost” means “this machine”. Deploy your app to a different environment or change the app url to your computer’s IP address.
Can anyone explain me how to configure in Google Cloud Platform the Callback URI for native mobile app? I've tried with all of values listed below but the error was always the same: "The request failed because one of the field of the resource is invalid."
The documentation on https://docs.mendix.com/appstore/modules/oidc/ - chapter 5 says:
egister the following callback URLs:
The first is accepted (es. http://localhost:8080/oauth/v2/callback) but the second seems not good in GCP.