>
> *basic_auth*
> 2. models/db.py
> from gluon.contrib.login_methods.basic_auth import basic_auth
> auth.settings.login_methods.append(
> basic_auth('https://one.one.com'))
> auth.settings.login_methods = [basic_auth]
>
The .append() above is pointless, as the next line completely overwrites
auth.settings.login_methods. Also, by setting basic_auth as the sole login
method, you end up with an error if you try to sign in with the /user/login
form, as basic auth does not work with that form (it involves sending
credentials via HTTP headers).
>
>
> *pam_auth*
> 2. models/db.py
> auth.define_tables(username=True, signature=False)
> from gluon.contrib.login_methods.pam_auth import pam_auth
> auth.settings.login_methods.append(pam_auth())
> auth.settings.login_methods = [pam_auth]
>
Same problem as with basic auth above -- you have made pam_auth the only
login method, and it does not work with the login form.
> *gae_google_login*
> 2. models/db.py
> from gluon.contrib.login_methods.gae_google_login import GaeGoogleAccount
> auth.settings.login_form = GaeGoogleAccount()
> auth.settings.login_methods = [GaeGoogleAccount]
>
>
It should be gluon.contrib.login_methods.gae_google_account. The book
should be updated.
Anthony
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.