Forum Discussion
Yes it's Bearer token (i followed this procedure: https://www.soapui.org/docs/oauth2/oauth2-authorization/) but i don' t have all the information about client identification, client secret, Authorization URI, Access Token URI, Redirect URI.
called it Profile 1 in Authorization but it tried rename to Bearer.
i tried context.testCase.testSuite.project.setPropertyValue('TOKEN', accessToken)
The token is saved in project property but still not got retrieved in access token in the second request.
def jsonResponse = context.testCase.testSuite.getPropertyValue("loginResponse")
def jsonSlurper = new groovy.json.JsonSlurper()
def parsedJson = jsonSlurper.parseText(jsonResponse)
def accessToken = parsedJson.access.toString()
context.testCase.testSuite.project.setPropertyValue('TOKEN', accessToken)
- nmrao7 months agoChampion Level 3
Instead of AuthProfile, can you use the REST Request step to get the bear token?
Related Content
- 6 years ago
Recent Discussions
- 2 days ago