Unable To Call An External Service Which Accepts Request Body In "application/x-www-form-urlencoded"
(Doc ID 2465875.1)
Last updated on JANUARY 13, 2021
Applies to:Mobile Cloud Service - Version 17.2.5 and later
Information in this document applies to any platform.
Unable to call an external service which accepts request body in "application/x-www-form-urlencoded" format , even when using "Content-Type":"application/x-www-form-urlencoded" header while passing the request body to the connector.
In this case, it is necessary to call an Okta API to authenticate the user and it is required to pass "Authorization" header to this API which is base64 converted Okta's clientID and clientSecret and "Content-type" is 'application/x-www-form-urlencoded; charset=utf-8'.
Following was the code used :
Here, oktaconnector's url is <okta BaseUrl>.For e.g. https://<organization'sname>.okta.com
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!