Question
Nike
IN
Last activity: 21 Mar 2025 15:54 EDT
How can i pass Dynamic values in Authentication profile (ClintID and Secret)
We are currently working on an OAuth 2.0 authentication profile in Pega and need to dynamically pass the client ID and secret. We have stored the client ID and secret in a data page (e.g., D_AuthDetails.clientid and D_AuthDetails.Secret). However, when we try to pass these values using pages and classes (e.g., D_page.client_id and D_page.client_secret), it is taking static values instead of the dynamic ones.
Could you please advise on the best approach to retrieve these values from the data page and pass them dynamically in the authentication profile?
Thanks for advance
@Nagendra Babu Hi,
I understand you’re trying to pass the client ID and secret dynamically, likely for different environments or applications. However, storing the client secret unmasked in a database table is not recommended and is considered a security violation in most organizations. Pega stores the secrets in the Authentication Profile rule as per industry standard encryption and masking.
To achieve a dynamic authentication profile:
Let me know if you need more information on this approach.