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

Fix for issue #538 #540

Merged
merged 3 commits into from Mar 22, 2013
Merged

Fix for issue #538 #540

merged 3 commits into from Mar 22, 2013

Conversation

adamfowleruk
Copy link
Contributor

Added check of WWW-Authenticate header for required security method
Added code to generate a Digest response for the Authentication header
Added utility code around the above.

Added computation of the Digest Authenticate header, and detection of whether it's Basic or Digest required by the server.

I don't currently save the nc between requests - I need a pointer on where/how I can do this for all service clients. (Can I just save this as a protected property internally to the ServiceClientBase class?)

Added check of WWW-Authenticate header for required security method
Added code to generate a Digest response for the Authentication header
Added utility code around the above.
@adamfowleruk
Copy link
Contributor Author

Now just figured out how to persist authentication requirements between requests. The NC value is incrememnted on each request now. Checked the code to ensure it works on all requests (via PrepareWebRequest method).

mythz added a commit that referenced this pull request Mar 22, 2013
@mythz mythz merged commit 1d65813 into ServiceStack:master Mar 22, 2013
@mythz
Copy link
Member

mythz commented Mar 22, 2013

Ok cool, if you could also provide an integration test somewhere, e.g. in ServiceStack.WebHost.Endpoints.Tests
to verify the above code, that would be great!

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