Preerab
6 years agoOccasional Contributor
how to automate our manual Oauth2.0 process. ?
READY API 2.6.0
I am trying to automate token retrival part of my REST URI call. I am successful in generating OAUTH2.0 (client crential) token manually 'Get Token'
I am following Javascript and ...
- 6 years ago
Hi Preerab,
Can you please share the full code which you use on Page 3?
Automating Token Retrieval on Request
By default, ReadyAPI does not check if a token has expired even if automated retrieval is enabled. You can use Groovy scripts to check if a token is up-to-date and retrieve a new token, if necessary. For this purpose, call the
requestAccessToken
method and specify theconsoleMode
parameter as described in the Automating Token Retrieval Example topic.Do you use this method?