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

display Basic Authentication popup #798

Closed
alfhv opened this issue Jun 20, 2016 · 2 comments
Closed

display Basic Authentication popup #798

alfhv opened this issue Jun 20, 2016 · 2 comments

Comments

@alfhv
Copy link

alfhv commented Jun 20, 2016

I have some actions/controller with Authorize attribute. I want to display a popup to ask for user/passw when I click "Try it out" swagger button (just first time could be good)
Then this user/passw should be put on Authorization header and be passed to server for validation.
I have already went into issues #326 and #290 but can't make this work. I dont want to display an extra field on each action like #290 suggest with an IOperationFilter.

please advice

@VisualBean
Copy link

See my blogpost on this matter exactly: http://visualbean.io/blog/adding-basic-authentication-to-swashbuckle

@VisualBean
Copy link

But Basically, if you add Basic Authentication as an attribute on a given webapi endpoint - most browsers will show you the login popup.

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

3 participants