SamsungKnox Token Library
referenced the package : knox-token-library-js
This library provides utility methods to generate and sign Knox Tokens using server side Javascript. The pre-requisites for using this utility are
- You have downloaded the Knox Credential file (credential.json)
- You have generated a Client Identifier (api-key) for accessing apis of Knox Cloud Services.
The keys below must have Cloud API privileges on Samsung Knox. If you do not have permission, you can request permission by disconnecting the Ticket from the Samsung Knox Admin Portal.
Intended Use
The workflow for making api calls to Knox Cloud Services is divided into a portal workflow, and a programmatic workflow.
Check out the official Samsung Knox documentation below for more information.
https://docs.samsungknox.com/dev/knox-cloud-authentication
Portal flow
- Download credential from Knox Api Portal
- Generate and Download ClientIdentifier (api-key) for a specific Knox Solution
Programmatic flow
- Call Knox api to generate an Api Access Token. This api call requires a signed ClientIdentifier, and specific contents of your credential (Public Key).
- Call Knox api for your intended workflow (eg: upload device, configure device etc). This api call requires your signed Api Access Token, and specific contents of your credential (Public Key).
This utility js library helps generate signed clientIdentifiers, and signed accessTokens.