Question
Maantic Inc.
IN
Last activity: 28 Apr 2022 20:29 EDT
OAuth2 for grant type authorization code
Has anyone implemented OAuth authentication for a Connect-REST with grant type - Authorization Code?
I am trying to implement that but encountering an error saying - "Could not acquire fresh access token"
I have provided all the information
- Client ID
- Client Secret
- Scope
- Authorization Code Endpoint
- Access Token Endpoint
- Redirect URL Endpoint
- Auth Scheme as Client secret
- Method as POST and
- Send token as - Authorization header
Note that I have not added any parameters in the 2 endpoints (Auth Code Endpoint and Access Token Endpoint). I am expecting Pega to automatically add them to the endpoints as I have provided them separately.
Am I missing something? Do I need to still add them as parameters in the end point?
The basic issue looking at the tracer I see is that there is no entry in the dataschema.pr_data_token table where "pygranttype" = ? and "pyscope" = ? and "pyclientid" = ? and "pyuseridentifier" = ?
Urgent help needed!
Thanks in advance.
Tanay