Token Management is a new feature in OpKey which allows you to create new authorization servers/tokens and use them across your Function Libraries, Test Cases, Service Repositories etc. as required. You can add multiple authorization servers/tokens and save them. Once you have added the authorization server, you can use the respective authorization token to authenticate the web service. You can further use the added authorization server (tokens) as input parameters under input data in your Function Library. In addition, you can also use the authorization servers/tokens as input data.
OpKey users can now create required tokens easily. There is a new option Token Management under Tools menu to create a Tokens, as shown below:
- Click on the Tools menu and then click Token Management.
- Token Management window opens. From here, you can create new authorization server, edit and existing an existing authorization server, if required.
- Click on the Add Authorization Server button to add a new authorization server and create token.
- Enter name of the authorization server name, Grant Type (Authorization Code, Implicit, Password Credentials or Client Credentials) select Refresh Token type (Manual or Automatic) and fill other required fields and then click on Save Token.
- If you select Refresh Token Automatic, then you need to select Default Server Time or Custom Time fields also.
- Here, we have created Authorization Code type of Manual Refresh Type authorization server. You can have a look at below screenshot.
- Click on Request Token button to generate the token.
- Here, you can have a look at the generated authorization server token in Grid View.
- You can switch to the Raw View to see the raw form of the generated authorization server token.
- Here, the Authorization Server Token has been created successfully.
- You can further edit the authorization server token by clicking on the Edit Authorization Server button and adding the desired fields.
The created tokens can be used across the Test Cases and Function Libraries as input data.
- You can add the generated Authorization token within a Function Library from the Input Data tab under Token Manager tab, as shown below.
- You can add the generated Authorization token within a Test Case from the Input Data tab under Token Manager tab, as shown below.
- You can click on the Audit Trail button to view the information about the created authorization token.
- Once you have used your Authorization token with Function Library or Test Case, you can click on the UsedBy and view where it is mapped.