Question
Comerica
US
Last activity: 15 Apr 2019 7:34 EDT
OAUTH 2.0 for exposing a rest Service. PRPC 7.2.1
HI All,
We are trying to enable OAUTH for the PEGA API. I have configured the oauth as per the instructions mentioned in https://pdn.pega.com/accessing-pega-api-using-oauth-20/accessing-pega-api-using-oauth-20.
BUt when i am trying to generate the token i am getting error message. PLease find the request and response below.
Request:
{
"client_id":"xxxxxxxxxxxxxxxxxxxxx",
"client_secret":"87CA4784C54D86532305428E1BFC3BF4",
"grant_type":"Client_Credentials"
}
Response:
{"errors": [
{
"ID": "unsupported_grant_type",
"message": "The grant type is not supported by the authorization server."
},
{
"ID": "invalid_request",
"message": "The request is missing a required parameter."
}
]}
can any one help me in understanding if there is any thing i am missing.
Also find the attached screenshot of the Oauth Client Registration rule.