This site requires JavaScript to be enabled
IE BUMPER

Product
Version
IncidentLookup using list
Language
How can we help?

Solution Suggestions

Please enter your question to get suggestions.
Unverified
  Help
IE BUMPER
Categories
Boolean Operators
OR or vertical bar symbol (|)
Finds a match if either the terms exist in a document (a union using sets).
AND
Finds a match if both terms exist in a document (an intersection of sets).
NOT, minus (-), or exclamation point (!)
Excludes documents that contain the term after NOT (a difference of sets).
Wildcards
Asterisk (*)
The asterisk symbol performs a multi character wildcard search.
Percent sign (%)
The percent sign performs a single character wildcard search.
Phrases
Quotation marks (")
Use quotation marks to search for an exact phrase with multiple terms.
For examples and more information look at our Knowledge Base: Advanced Search On The Support Portal

HOW TO BUFFER API OAUTH 2.0 TOKEN

Situation

A customer wants to buffer the OAuth 2.0 Token.

 

Solution

  • Open API scan and add the Token endpoint in the endpoint field and other details to generate the token in payload as shown below
     
    Syntax :- Field1=Value1& Field2=Value2
    Eg:- grant_type=password&client_id=2ad88395-b77d-4561-9441-d0e40824f9b


  • Add the header Content-typeapplication/x-www-form-urlencoded

    ​​
  • Run the request to generate the Token


     
  • Once the Token is generated create an API test case of the same and go to response module create the Token ModuleAttribute


     
  • Once the module attribute is created navigate to the test case and add buffer name to save token

  • Below are the results of the execution

0 0

Harish Krishnadas

Created: 2020-07-30 23:14:38 , Updates: 1, Last Update: 2020-07-30 23:15:29

If the Values of "Client_ID", "Client_Secret" has special characters then you have convert them to URLEncoded format first and then send the Request, else you will be getting "400 Bad Request" with Message "InValid error"

How to Convert to URLEncoded?
You can use below free site for converting to URLEncoded format
https://www.urlencoder.org/

Thanks,
Harish

0 0

BILEL TAIEB

Created: 2020-09-03 14:51:22

Hello Pavan,

Thank you for this interesting article.

I would like to know please, after having buffered the token, how can we insert it (automatically) in the main webservice (the webservice that uses this token to authenticate).

Thank you in advance for your answer

Pavan Meharwade

2020-09-30 03:33:31

Hi Bilel,

You can create the module attribute of the Authorization header in the main web service request and in the test case of the main web service request you can pass the buffer value so that it takes the buffer token in it.

Regards
Pavan

0 0

Sebastian Holz

Created: 2021-01-12 16:45:25

Thank you very much. Saved my day!

0 0

Diyor Fayziev

Created: 2021-02-09 03:42:48 , Updates: 1, Last Update: 2021-02-09 03:43:28

Hi Pavan and All,

I was able to Buffer the response value (Token) and created Module Attribute to store the token, however I'm not able to pass the buffer value as a header to another request. Can you please share best practice to pass buffer value as a header attribute? 

Thanks,

Diyor