wine_bouncer icon indicating copy to clipboard operation
wine_bouncer copied to clipboard

Swagger JSON not available with protected auth strategy

Open penso opened this issue 9 years ago • 2 comments

Hi everyone,

As explained in the title, my swagger json to be used with swagger-ui isn't publicly available with protected auth strategy. I want to enable protected auth strategy because all my API endpoints are supposed to be protected, but I still want to have public documentation.

How can I achieve that? Thanks.

penso avatar Dec 25 '15 12:12 penso

Currently you can not, you need to specify each endpoint right now using the swagger strategy. You gave me some ideas, and I will be rewriting the authentication to provide the safety you requested.

Do you think the protected strategy each endpoint should be default protected with the Doorkeeper's default configured tokens?

antek-drzewiecki avatar Dec 25 '15 22:12 antek-drzewiecki

I'd expect using the Doorkeeper's default configured scope if none defined, but I'd also expect to be able to define it as an optional parameter to auth strategy.

penso avatar Dec 25 '15 22:12 penso