Question
OAuth2 refresh Token
Hi,
I am using Pega OAuth2.0 APIs for the REST based communication. I did not find any Pega API for refreshing the OAuth token just before it got expired. Please let me know if any API available which support my requirement.
I found revoke API, which seems to be useful to meet my requirement. But I have a challenge in finding the syntax for this API. like method type, parameters, headers ..etc.
Please help me, if anyone has implemented this type of requirement.
Thanks
Abdul Rasheed
***Edited by Moderator: Pallavi to update platform capability tags***
As per the description of the problem if I understood correctly. Pega OAuth2.0 is utilized for REST service authentication then you need to invoke the OAuth API to get the token and used that token to make REST service call (before it expires).
You can find the URL from the designer studio ->Records -> OAuth2.0 Client Registration
Check for Access token endpoint URL. Hit the URL with the HTTP Post method by passing relevant parameters. (Attached screenshot for your reference)
Also, check the below article for more details.
https://community.pega.com/knowledgebase/articles/data-integration/accessing-pega-api-using-oauth-20