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

handle_admin_role doesn't work with basic auth #2

Closed
danielmoore opened this issue Jan 25, 2014 · 1 comment
Closed

handle_admin_role doesn't work with basic auth #2

danielmoore opened this issue Jan 25, 2014 · 1 comment
Labels

Comments

@danielmoore
Copy link
Owner

It really shouldn't work at all.. CouchDB should stop executing auth handlers once the user_ctx is set and handle_admin_role relies on user_ctx being set beforehand.

We probably should switch this to a wrapped implementation where handle_admin_role wraps whatever auth handlers the administrator specifies. In some ways this would be more flexible.

@danielmoore
Copy link
Owner Author

There seems to be an issue with how CouchDB parses out the "SpecArg" in an auth handler triple. This may require a workaround to deal with... Using another config option seems fairly obvious, but there's a good amount of code necessary to deal with loading it up, parsing it, and re-parsing it if it ever changes.

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

No branches or pull requests

1 participant