OAuth2.0 token for grant_type=client_credentials(error: invalid request, missing parameter: access_token)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 10:12 AM
my configuration for oauth profile:
clien id: xxx
client secret:xxx
token url: http://domain/version/token
grant_type: client_credentials
============================================================
the third party uses oauth2.0 with grant_type uses type format as www-form-urlencoded .
APIs currently support only a single grant_type value of client_credentials.
There is a single www-form-urlencoded POST parameter, grant_type. The username is the Client ID and the password is the Client Secret.
============================================================
ERROR:
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2022 08:42 AM
The issue is resolved. I got it working.
Issue: I was sending the parameters in the request headers.
Solution: The parameters need to be added in the request body/payload.