Question

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.

Comments

Keep up to date on this post and subscribe to comments

May 20, 2018 - 1:58pm

August 17, 2018 - 11:39pm

@JoydeepD1519,

In your request to rest service, the grant type be as below:

"grant_type":"client_credentials"
 

 

 

April 15, 2019 - 7:34am

Hi,

I have the similar requirement to generate the access token for external application to access PEGA service. I followed the same process as mentioned in the article "https://pdn.pega.com/accessing-pega-api-using-oauth-20/accessing-pega-api-using-oauth-20" but i am getting below error in postman. 

{
    "errors": [
        {
            "ID": "invalid_authorization_header",
            "message": "Invalid Authentication Data."
        }
    ]
}

Any help ?