Unsupported Grant Type while hitting Authentication-Service
Hi,
I'm trying to follow this doc (https://helpx.adobe.com/digital-publishing-solution/help/shared-content-api.html) to create a shared entity. Now when I try to hit
https://pecs.publish.adobe.io/publication/{publication_id}/sharedContent/{shared_entity_title} I only always get 401 Unauthorized.
"error_code": "401013"
"message": "Oauth token is not valid"
}
I realized that I'll have to run the Authentication service first to get Access Token and get authenticated. Now, I run https://ims-na1.adobelogin.com/ims/token/v1
passing all the necessary params,
client_id: <client_id>
client_secret: <client_secret>
scope: AdobeID,openid
device_id: <device_id>
device_token: <device_token>
grant_type: device
However, I always get 400 Bad request saying unsupported grant type.
{
"error": "unsupported_grant_type"
}
I'm not able to figure out where I'm going wrong! Please help!
PS: I'm hitting these URL's from Google Chrome's Advance REST Client.
