I followed the instructions to configure the Enterprise Authentication in NativeScript Sidekick (https://docs.nativescript.org/sidekick/user-guide/enterprise-auth/oauth2?_ga=2.225672666.17995213.1561656859-952769349.1561656859) with my Azure AD B2C account.
I've locally built the application for Android and I run it on my phone using the preview app. It's working so far.
But every single time I try to login in the application, I've the following error: {"error":"invalid_client","error_description":"Client authentication failed.","debug":"Client Verification Failed: redirect uri not valid"}
I've looked at the configuration in Kinvey, I see the the redirect URI is http://example.com . In the procedure, modifying this URI is never specified, but maybe it's the problem. The thing is, I've no idea what I should put there instead since I want to redirect to my mobile app...
Any help would be greatly appreciated!
Edit: I've edited the call to loginWithMIC() to add parameters:
this._userService.loginWithMIC('nsplayresume://', 0, { micId: 'OAuth2:88b92d888ee44a36aea52fXXXXXXXX' })
Now I have this error: {"error":"invalid_client","error_description":"Client authentication failed.","debug":"Client Verification Failed: Error: Client is not configured for Kinvey Auth"}
Edit2: I've made some tests in the Kinvey Console, and using the Api Console of my application, I can succesfully login. So the configuration is good, it's the way I call it in the application that doesn't work for some reason...
If I call pingService.ping(), it's working fine, so my initialization seems good...