Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

getAuthInstance(config)

Updated on July 20, 2021

Obtains an instance of the PegaAuth class that contains helper functions for the OAUTH2.0 registration in Constellation applications.

Returns

The instance of the PegaAuth class as an object.

Parameters

NameTypeDescriptionRequired
configobjectThe object that contains the clientID, clientSecret, and endPoints properties that help in obtaining an instance of the PegaAuth class.

Usage example

In this example, the API returns an instance of the PegaAuth class.

const config = {
clientId: 'clientId',
clientSecret: 'client_secret_value',
endPoints: {
     token:'token_endpoint',
     revoke:'revoke_endpoint',
     authorize:'authorize_endpoint'
  }
 };
PCore.getAuthUtils().getAuthInstance(config);

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us