Reuse Authentication service token for REST connector

Hi,

I have a requirement to reuse token from SSO connection (with OpenID authentication service) and I want to reuse this token for REST connector.

But it seems impossible with Pega OOTB behavior (we use Pega 8.3.5).
Do you know if it’s possible ?

Current implementation:

  • When user connect to Pega platform with SSO, an OpenID authentication service is used… So a token is available in table pr_data_token with grant type “Authorization code” and a specific scope
  • When user use connector REST, we use authentication profile with “authorization code” and same scope that used in authentication service.
    But Pega doesn’t use automatically token available in table pr_data_token; so we should use gadget pxInformationMashup to retrieve a fresh token (but in this case, there is a popup to ask credential to this user).

Even if we will be able to reuse token generated when user connect, I didn’t find a solution to refresh this token.

Do you have already implement this type of requirement on other project ?

Thanks in advance for your feedback.

@JOHAN.GRALL

See if this article helps: Pegasystems Documentation

Apparently, you can reuse the JWT token from your active SSO session, which I believe is your case.

Also, I believe you need to enable ‘Use refresh token if available’ option on the auth profile of your connector rule.

Thanks

@Nirmalya.SenSharma Thanks for your response.
Currently, we use Pega version 8.3.5 and not Pega 8.4.

I will test it when migrate on Pega new version.

Currently, we will continue to use custom system to get new token when necessary (wit pxInformationMashup gadget)