Swagger's authorizations doesn't work
Closed this issue · 4 comments
There's no code in both wine_bouncer
and grape-swagger
that takes authorizations
option from desc and passes it into JSON.
I'll try to reproduce the problem. Can you please verify you are using grape-swagger 0.8.0, swagger-ui 2.0.x and set the config like below?
WineBouncer.configure do |config|
config.auth_strategy = :swagger
end
In wine_bouncer
you need to specify to use the swagger strategy. That strategy should look for the authentications option. See the Swagger Strategy line 24.
Hey, sorry for no reply, I was busy with other projects.
There is no code in wine_bouncer to support Security Scheme Objects which makes the :swagger
auth strategy a bit useless (swagger will not for example pick up the OAuth scopes for resources).
Sorry for the confusing description of the issue, I mistakenly was looking at the Swagger 1.2 spec which used authorizations: {}
hash in resources instead :)
@antek-drzewiecki I believe this issue can be closed.
closed ;)