How to implement pxInformationMashup in Constellation

Hello

In previous Pega versions, we were using OOTB pxInformationMashup to retrieve an authorization token from an external system and then use this token for subsequent calls

We are now building a new app in Constellation and since we cannot use sections anymore we are wondering what is the best way to replace this and get the token.
We did go through available APIs from the PCore object but didn’t find anything that suited, we tried the AuthUtils class (PCore) but it isn’t working

@FabienM I just released a component in the Constellation UI Gallery that should provide the same functionality as the pxInformationMashup - for more details How to connect to an external application using the OAuthConnect component with Constellation | Support Center

If you have any feedback, please follow up on the github project directly or using the discussion post above.

Hope it helps!

@RichardMarsot Hello Richard,

Thanks for the answer, this is exactly what we were looking for

The widget is not refreshing in our application, even with the workaround, do you know why this could happen ?

Everything else is working perfectly!

Thanks

@FabienM you need to make sure that the channelID that the component is listening to is the same on both side - it should be OUATH2 by default - also check that the correct pyCloseWindow is called - if you listen to the web socket messages in the work portal, you should see the event being fired. May be the redirect url is not correct set to the oauth2 endpoint?