The Privakey CX Auth Service must be bootstrapped and configured before it can be used.
- From project root / utils run node cred-gen.js to generate admin
credentials. The output should resemble:
Generating new admin credentials... Credential generated successfully! User Name: <generated username> Password: <generated password> Use this credential to authenticate to the credential manager. Note the generated username and password. You will use these to authenticate to the Admin Portal.
- From project root / utils run node credential-manager.js
- Open a browser and go to the address displayed on the command line.
- Use the credentials generated above to authenticate to the Admin Portal
- Under the heading Communication Server, click the "Update Credentials Button", then the "Generate Credentials" link, copy the generated key, and click te "Save" button.
- Set the COMM_SERVER_KEY environment variable to the generated key (See Deployment )
Request origins (services that can interact with the Privakey CX server) need to be configured from within the Admin Service
- In the App Spaces / IDPs section, click "Create New App Space"
- Enter a descriptive name for the App Space in the name field
- Select simple as your Identity Provider Type (If you are using OpenID Connect, see Administration for configuration details)
- Click "Save" and you will be taken to the App Space page
- Click "View / Manage all Request Origins"
- Click "Create New"
- Enter a descriptive name for the Request Origin in the name field
- Select your Credential Type (HMAC by default)
- Click "Create Request Origin"
- In the Overview section, make note of the User Id, as you will need this to authenticate to the Privakey CX Server
- In the Credential updated section, click the "Show Secret" button and copy the secret, as you will need this to authenticate to the Privakey CX server
The server is now configured and ready to be started.
npm start from project root