Authenticating Pega Infinity Server user access
To publish, list, or delete a Cosmos digital experience (DX) component, you require authentication to access the resources on the Pega Infinity Server.
- Log in to the Pega Infinity Server.
- In Dev Studio, click , and then open the DX-CustomComponents record.
- Click Regenerate Client Secret.
- Copy the Client Credentials (the Client ID, Client Secret, and Access token endpoint), and then save the record.
- Update the
task.config.json
file by using the copied values:"server-config": { "server": "https://127.0.0.1:8080/prweb", "user": "customcomponentoperator", "password": "pwd", "clientId": "<mention client ID here>", "clientSecret": "<mention client secret here>", "accessTokenUri": "https://127.0.0.1:8080/prweb/PRRestService/oauth2/v1/token" }
- Run the following command to initiate authentication:
npm run authenticate
Previous topic Creating Cosmos DX components Next topic Viewing existing Cosmos DX components in Storybook