-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with oAuth on Swagger-ui 3.0.3 #3260
Comments
There have been many updates to the OAuth2 support in the various releases. Please try the latest version first and report back. |
Hello webron,
I then tried the following initOAuth() config and this didn't work either:
I also tried it without quotes around the key:
But none of these works. Please advise. |
@bodnia can you take a look at this one? |
Could using additionalQueryStringParams : {apikey: "my_api_key_value_here"} work as below? Or is that also not implemented yet?
Thanks |
@northk it is implemented, but these params are added to authorization urls when making authorization calls in popup |
OK thanks. It would be a very useful feature to support the apikey and value being specified in the initOAuth() call or otherwise connected with the SwaggerUIBundle object in some way. In swagger 2.x we could programmatically pass the apikey and value into the SwaggerUi object, and it worked well as below. Unfortunately at the moment this leaves us in a situation where previous functionality that worked on our site, no longer works: Swagger 2.x approach:
Thanks for your consideration. |
Closing this support ticket due to inactivity. The feature discussed here is, by my estimation, covered in this feature ticket: #2915 Feel free to comment or request a reopen if there are any lingering concerns. |
Greetings Swagger UI team,
I'm attempting to use oAuth to make calls after constructing an instance of SwaggerUIBundle, as below. I'm using Swagger UI 3.0.3. I can authorize and make calls without issue using the Authorize button manually and entering in the same key and value manually. But, when I attempt to authorize API calls using initOAuth() using the same key and value as I entered manually, I get a Not Authorized error. The Swagger UI instance is rendering normally. There are no Javascript console errors. Can someone please help?
Thanks.
The text was updated successfully, but these errors were encountered: