Contributions
Re: Oauth2 token retrieval returns blank page
Hi alexszarko, Is it possible you're getting redirected to the blank page with your response? With our system using Okta, when I send a GET request with all of the parameters to get the auth code back in the response, if I have "Follow Redirects" and/or "Follow 302 Redirect with GET" turned on for that test step, I will not be able to get my token from the response.1.4KViews0likes0CommentsRe: ReadyAPI use groovyscript to fetch the token from the environment
Hello again! You *shouldn't* need any imports to run that chunk of groovy. I have the two additional libraries below, but I believe they are leftover from some refactoring I did a while back. So give it a try without them. I hope it helps! import com.eviware.soapui.impl.rest.OAuth2Profile.* import java.io.* -Dan5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.6KViews0likes1CommentRe: ReadyAPI use groovyscript to fetch the token from the environment
Hi AAB, Hopefully I read your question right here. The way I do this is to get my Auth Profile via a slightly different method; like this: def oAuthProfile = testRunner.testCase.testSuite.getProject().getAuthRepository().getEntry(nameOfProfile) "oAuthProfile.getAccessToken()" seems to work for me after that. I hope it helps! -Dan5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.6KViews0likes3Comments