I'm trying to get swagger to authorize my "Client Credentials Flow"/application flow using the Swagger UI. I have a C# RESTful WebApi Service that I can test without issue via SoapUI. I capture the token request and response in Fiddler and see the token in the response. I do the same thing from the Swagger UI and also see the token in the response that was captured by Fiddler.
The Swagger UI then refreshes and I see a another request to /swagger/docs/v1 captured in Fiddler. Using Chromes developer tools I can trace the request to the Ajax request, once there I step over the Ajax request but set a breakpoint on the onOAuthComplete function in the swagger-oauth-js file. The first thing it does is check for the token, which is not set. I'm also not seeing a response in the Chrome developer tools for the token request, I can see the response/token in Fidder, not the Chrome Developer tools. (Same behavior in IE 10)
Any idea why the Response/token is being lost?
- swagger-ui version 2.2.4 via Swashbuckle version 5.4.0
- a swagger file reproducing the issue, wish I knew.