OAuth 2.0 access token
When you purchase and deploy NexusOne, the deployment script does the following:- Creates your client ID and secret in Keycloak.
- Assigns the default NexusOne roles to the client’s service account.
- You can then use the client ID and secret, along with a profile scope, to generate the token.
If you aren’t an administrator, then you must ask your administrator to assign a role to your user account.
- Install the latest version of jq.
-
Create a variable for the client name, ID, and secret.
-
Generate the access token.
-
After generating the access token, you should see a similar output.
Copy the value of
access_token, the long string inside the quotes.
OAuth2AuthorizationCodeBearer
security method and also add the access token value in the Authorization attribute before sending an API call.
API or PSK key
The API key, also known as a Pre-Shared Key (PSK), grants you access to interact with the NexusOne API endpoints. This section outlines how to get, regenerate, or delete your API key.Get your API key
There are two ways to get your API key, either the NexusOne team issues you one as part of your cluster deployment or you generate one using the NexusOne portal.Issued as part of your cluster deployment
When you purchase and deploy NexusOne in your Kubernetes cluster, you receive an API key. If the Nexus Cognitive team is managing your deployed environment, you can also request for the API key at any time.Generated using the NexusOne portal
To generate your API key, use the following steps:- Log in to NexusOne.
- On the NexusOne homepage, click your profile name initials showing at the top right corner of the page.
- Click Settings to view your profile settings.
- In the Personal PSK section of the page, click +.
- Enter a description for the new PSK.
- Click Create.
- Copy the PSK that appears. You can now use it in your app.
Regenerate your API key
To regenerate your API key, use the following steps:- Log in to NexusOne.
- On the NexusOne homepage, click your profile name initials showing at the top right corner of the page.
- Click Settings to view your profile settings.
- In the Personal PSK section of the page, click +.
- Enter a description for the new PSK.
- Click Regenerate and confirm your selection.
- Copy the PSK that appears. You can now use it in your app.
Delete your API key
To delete your API key, use the following steps:- Log in to NexusOne.
- On the NexusOne homepage, click your profile name initials showing at the top right corner of the page.
- Click Settings to view your profile settings.
- In the Personal PSK section of the page, click +.
- Enter a description for the new PSK.
- Click Delete and confirm your selection.
APIKeyHeader security method and
add the API key value in the Authorization-PSK attribute before sending an API call.