swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

OAuth Token is not used in Try it out request

Open christophsteiner opened this issue 9 years ago • 3 comments

Hello, I am using Swagger UI Version 3.5.0 to gather my existing Swagger 2 Endpoints. Everything works fine so far. The endpoints themself have a OAuth Config for Password flow inside. When I click on authorize the OAuth Authorization works fine. The Bearer Token is visible in the CURL Example in the Try It Out section and the command can be copied to a bash and executed successfully. The problem is that when pressing on execute the request will be sent without the bearer token. (Verified by Developer Console of Chrome). Does anyone have a similar issue?

christophsteiner avatar Nov 29 '17 10:11 christophsteiner

What do you see in the developer console?

webron avatar Nov 29 '17 22:11 webron

When I click on authorize the OAuth Authorization works fine. What do you mean ? Could you please post your full configuration?

kopax avatar Nov 30 '17 06:11 kopax

Hi, the problem was an HTTP OPTIONS Request that our Oauth Library rejected. Thread can be closed. Thanks

christophsteiner avatar Nov 30 '17 08:11 christophsteiner