Contributions
Re: Problems with refresh OAuth2 token
I seem to remember I had already dealt with this sometime in the past. Oh right: 5 years ago! It's a shame this shortcoming still exists in ReadyAPI. 😞 Yki Here is a slightly improved(?) version on that script: // Name: 'Forced token update' // Event: 'SubmitListener.beforeSubmit' // Target: '${=submit.request.authType.asBoolean()}' filters only test steps that have Authorization as an option // https://support.smartbear.com/readyapi/docs/requests/auth/types/oauth2/automate/index.html#on-request import com.eviware.soapui.impl.rest.actions.oauth.OltuOAuth2ClientFacade import com.eviware.soapui.support.editor.inspectors.auth.TokenType import com.eviware.soapui.model.support.ModelSupport import com.eviware.soapui.config.AccessTokenStatusConfig def project = ModelSupport.getModelItemProject(context.getModelItem()) def authProfile = project.authRepository.getEntry("!YOUR AUTH PROFILE NAME!") if(authProfile.accessTokenStatus != AccessTokenStatusConfig.RETRIEVED_FROM_SERVER) { def oAuthFacade = new OltuOAuth2ClientFacade(TokenType.ACCESS) oAuthFacade.requestAccessToken(authProfile, true, true) // Access token retrieval may take time. def stopLoop = 0 // loop counter to prevent infinite loops in case of problems while(authProfile.accessTokenStatus != AccessTokenStatusConfig.RETRIEVED_FROM_SERVER && stopLoop++ < 6) sleep(5) log.info("Set new token: ${authProfile.accessToken}") }11 months agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews2likes0CommentsRe: Problems with refresh OAuth2 token
I just got the token manually by constructing a REST request. There is no refresh_token. 😞 This is from MS Azure. Is no refresh_token normal? How would I setup the automation to "just get a new one". Since I am using Client ID + Client Secret there is no login screen; I just need to get a new token.11 months agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes0CommentsProblems with refresh OAuth2 token
For our service we are using OAuth2 for authorization. I have defined an OAuth2 profile in the Auth Manager. When I click the Get Access Token button manually everything works as expected: a new token is fetched and all my tests pass. When the token expires I am expecting ReadyAPI to automatically fetch a new token. However, this does not happen. What am I doing wrong?Solved12 months agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes11CommentsRe: I am not able to get output of remote shell script from groovy script in soapui
I think you are looking for the output in the wrong place. log.info("return code: ${process.exitValue()}") log.error("standard error: ${errorStream}") log.info("standard out: ${outputStream}") Have a look here.4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews1like0CommentsRe: ReadyAPI 3.1 fonts
nmraowrote: Please check in the preferences. Change font and save preferences. The only things I can find in Preferences is for "Editor Font" and "Text Field Font". Neihter of which is the Navigator pane.5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes2Comments