Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

Re: OAuth 2 Flow - Error getting token due to bad request

$
0
0

I know this thread seems old however I've also come across this issue. I can successfully obtain an authorization code but cannot get further than that. I shall record the steps to recreate the problem in SoapUI 5.2.1:

 

1. In my test step I have added OAuth2 as the authorization profile.

2. Click "Get Token".

3. "Get Access Token from the authorization server" popup appears.

4. Select "Authorization Code Grant" as the "OAuth 2 Flow".

5. Fill out the remaining required fields.

6. Click "Get Access Token" button.

7. The SoapUI browser appears in a new window, then loads up the security login page. After entering the required details and submitting, the status on the "Get Access Token from the authorization server" popup changes to "Received authorization code".

8. The browser now displays nothing. Nothing appears to happen from this point on. The only action I can take is to close the browser, which results in the status changing to "Retrieval canceled".

 

Is there something else I might be missing? I have confirmed the details are correct for Client ID, Client Secret, Auth URI, Access Token URI and Redirect URI.

 

Hoping someone can help me.


Viewing all articles
Browse latest Browse all 20990

Trending Articles