Forum Discussion

stewmoon's avatar
stewmoon
Occasional Contributor
7 years ago

oauth2 groovy script

Hi.

 

Is there a way that I can retrieve an token using oAuth2 from a groovy script?

I basically want to replicate a profile in the authorization manager (see screenshot) but within a groovy script.
I want to do this because SoapUI is not automatically getting a new token after it expires.

-Stew