Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

rfc6750 compability #49

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

rfc6750 compability #49

wants to merge 4 commits into from

Conversation

hardymansen
Copy link

Hi,
Saw #43

Support for the WWW-Authenticate response header, according to https://tools.ietf.org/html/rfc6750#section-3.1

For my user case, i need also specific implementation for scope as will be using in OAuth 2.0 framework.
e.g returning a 403, and the scopes required.
Not sure if you are liking that if , or if you want the lib to be more generic.

@twistedstream
Copy link
Contributor

@hardymansen: I think this PR looks good.
Could you add some test coverage? I think you could simply tweak the existing tests and add some assertions for the new WWW-Authenticate header being returned. If not, I could add them as well.

@hardymansen
Copy link
Author

Sure, will have a stab at it.

@hardymansen
Copy link
Author

Added a scope=admin to the default proxy and added the WWW-Authenticate to the test cases, and a new test case for scope missing specific.

Verified and fixed a 200 test. Now all 12 tests pass
screen shot 2015-12-01 at 18 07 36

@roryrjb
Copy link

roryrjb commented Jan 8, 2016

@twistedstream any update on this?

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

Successfully merging this pull request may close these issues.

4 participants