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

Fixed authentication using different login methods. #992

Merged
merged 1 commit into from
Jun 8, 2015

Conversation

btreecat
Copy link
Contributor

@btreecat btreecat commented Jun 2, 2015

There is a bug when attempting to use basic authentication with the auth plugins like LDAP.

The bug was that after authentication was successful, a user name was returned rather than a user object.

I just replaced username with user for the two lines appropriate in the login_bare() method.

This should allow others to still use AD/LDAP/etc authentication but use web2py as a REST API.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 35.92% when pulling 918fdf2 on btreecat:master into 236fdcf on web2py:master.

mdipierro added a commit that referenced this pull request Jun 8, 2015
Fixed authentication using different login methods.
@mdipierro mdipierro merged commit 33f12d9 into web2py:master Jun 8, 2015
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

Successfully merging this pull request may close these issues.

3 participants