-
Notifications
You must be signed in to change notification settings - Fork 761
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
OAuth2 and Swagger Auth #555
Comments
Of course, if there's anything I can do to help triage this issue or make it more clear, please let me know. |
I realize that it might be useful to have a JSON response to test this against... so here's the output of my repo to reproduce the problem (found at https://github.com/whatasunnyday/gsr-api-key).
When |
Hey everyone, sorry to post again on this issue. I was wondering if there's anymore information I can provide to help get this issue resolved. I don't write a lot of js but I would love to put in a hand if someone can help me get started. |
@whatasunnyday
|
@IvanGoncharov That's very helpful. Thanks. I'll close this issue. |
hey @IvanGoncharov i don't mean to bother but i noticed something in the test cases: https://github.com/swagger-api/swagger-js/blob/master/test/spec/v1/pet#L178-L185 "authorizations": {
"oauth2": [
{
"scope": "test:anything",
"description": "anything"
}
]
}, Isn't this the same form of |
hi @whatasunnyday sorry for the delay in responding! Yes, in the above example, there are scopes defined in the |
so @fehguy is |
Sorry to meddle, but I got referenced to this issue. |
@whatasunnyday I meant that you missing top level
As for this example: I still highly recommend you to use validator, it will save you a lot of time. |
@IvanGoncharov Ah, thank you so much. That is very helpful. |
Yeah @IvanGoncharov , thats what we also figured out. I was asuming @whatasunnyday was refering to the top level authorizations description in the issue he opened at my gem. 👍 |
Hi Swagger Team,
Greetings from the Ruby community. I was recently using Grape (API library), Rails, and Swagger and ran into an issue. It appears that Swagger-UI correctly sets an authorization header when added in the interface (api key field). However, if the endpoint has the option "authorizations" set with "oauth2", it will override the value.
I was able to create a test case in grape-swagger-rails ruby-grape/grape-swagger-rails#25 (comment).
To get a better understanding of how we tracked this down, checkout: ruby-grape/grape-swagger-rails#13. Specifically, this comment is helpful: ruby-grape/grape-swagger-rails#13 (comment).
The text was updated successfully, but these errors were encountered: