Skip to content
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

Swagger JSON not available with protected auth strategy #53

Open
penso opened this issue Dec 25, 2015 · 2 comments
Open

Swagger JSON not available with protected auth strategy #53

penso opened this issue Dec 25, 2015 · 2 comments

Comments

@penso
Copy link
Contributor

penso commented Dec 25, 2015

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.

@antek-drzewiecki
Copy link
Owner

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?

@penso
Copy link
Contributor Author

penso commented Dec 25, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants