Token Management

Overview:

Token Management is a new feature in Opkey that 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.

Creating Tokens:

Opkey users can now create the required tokens easily. There is a new option Token Management under the Tools menu to create Tokens, as shown below:

  • Click on the Tools menu and then click Token Management.
  • Token Management window opens. From here, you can create a new authorization server, edit and an existing authorization server, if required.
  • Click on the Add Authorization Server button to add a new authorization server and create a token.
  • Enter the 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 in 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 the Authorization Code type of the Manual Refresh Type authorization server. You can have a look at the below screenshot.
  • Click on the 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.

Using Tokens:

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 the Token Manager tab, as shown below.


  • You can add the generated Authorization token within a Test Case from the Input Data tab under the 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.



Click Here to learn more about Opkey features.

To learn more about Opkey as a test automation tool, you can visit https://university.opkeylms.com and enroll in our Opkey series course.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article