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

Basic auth: how to send WWW-Authenticate header to the client #496

Closed
rportab opened this issue Jun 15, 2018 · 1 comment
Closed

Basic auth: how to send WWW-Authenticate header to the client #496

rportab opened this issue Jun 15, 2018 · 1 comment

Comments

@rportab
Copy link

rportab commented Jun 15, 2018

Hi!
I'm writing a nanolet with non-preemptive Basic authorization support.
I didn't find a way to get a WWW-Authenticate header in the Response.
This header is needed so that the client retries the request with authentication (https://en.wikipedia.org/wiki/Basic_access_authentication#Protocol).
Is there something I'm missing? Can anybody provide info on how this may be achieved?
Thanks a lot

@rportab
Copy link
Author

rportab commented Jun 15, 2018

So the way to do it is Response.addHeader
Sorry for opening the issue too early

@rportab rportab closed this as completed Jun 15, 2018
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

1 participant