Unexpected API call from Cordova SDK

Document ID : KB000117272
Last Modified Date : 10/10/2018
Show Technical Document Details
Issue:
There is a call made by Cordova SDK to MAG for no apparent reason.
The call is to /authorize endpoint which we do not use.
We have no client authentication implemented in our environment.
We cannot find the reason for this call and we need to make it stop.
Environment:
Mobile SDK 1.7, 1.8
Cause:
The /authorize endpoint is triggered when the App tries to invoke an API request without a user session
Resolution:
There is a workaround to avoid this call from the SDK, simply remove the redirect_uri from the msso_config.json.
When the redirect_uri is removed , the SDK considers that the App is not using Authorization_code flow and will not hit the /authorize endpoint.