Hi:
I am trying to make this example work in B4J.
The app opens the browser, and after login, it doesn't return to the B4J app.
You can set the return_uri in Microsoft Authentication page, I've tried several of them, like "https://login.microsoftonline.com/common/oauth2/nativeclient" or the one which Erel's use in their Google oAuth2 sample: "http://127.0.0.1:51067", but they doesn't work.
After login, the browser goes to the indicated uri with the right params (code, etc...) The browser returns:
but the B4J app doesn't get any response.
Thanks
I am trying to make this example work in B4J.
The app opens the browser, and after login, it doesn't return to the B4J app.
You can set the return_uri in Microsoft Authentication page, I've tried several of them, like "https://login.microsoftonline.com/common/oauth2/nativeclient" or the one which Erel's use in their Google oAuth2 sample: "http://127.0.0.1:51067", but they doesn't work.
After login, the browser goes to the indicated uri with the right params (code, etc...) The browser returns:
B4X:
http://127.0.0.1:51067/?code=1.AYEAyJZMEN0ipkazjJYkmiPT3l.........&state=12345&session_state=96eb959e-5543-4f86-a904-461080b0c3a8")
Thanks
Last edited: