Contributions
- 3 years agoPlace ReadyAPI QuestionsReadyAPI Questions903Views1like0Comments
how to add in SOAP UI a bearer token rest call with json body to AUTH?
Hello! I am having a problem of converting a get token rest call from postman -into SOAP UI auth for test cases. I am not sure which auth to use in this case in SOAP UI, the json body in postman call is confusing me for SOAP UI. It is working as a call in SOAP UI, but i need to set this as a general token for the whole project in SOAP UI - all the other auths are asking for a client secret key and user, which it doesn't really have (it might be that json body - but i do not know how to put this into auth in soap ui). I am not sure if i should be using JWT auth - since in the response it is giving JWT error for the call3 years agoPlace ReadyAPI QuestionsReadyAPI Questions922Views0likes1CommentRe: OATH2 Authentication - can "get ID Token" be automated in testing?
Where do i put this script? i am puttingit in Automation and it is giving me a below error: "The following script is invalid: import com.eviware.soapui.support.editor.inspectors.auth.TokenType import com.eviware.soapui.impl.rest.actions.oauth.OltuOAuth2ClientFacade def authContainer = testRunner.testCase.testSuite.project.OAuth2ProfileContainer // Get OAuth2 profile name def profileName = context.expand( '${70}' ) def authProfile = authContainer.getProfileByName(profileName) def clientFacade = new OltuOAuth2ClientFacade(TokenType.BEARER) //TokenType.ID gets the ID token clientFacade.requestAccessToken(authProfile, true) def accessToken = authProfile.getAccessToken() Error: missing ; before statement (scriptToValidate#1)"6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.9KViews0likes0Comments