Yes but how depends on details. If you are calling an action that @auth.requires_login() as a service, it takes basic auth information from the header if there.
If instead you are accessing the action/page from a browser it will not return HTTP 401 Authentication required, instead web2py itself will prompt you for login and password and will not rely on your browser to do so. The code in gluon.contrib.login_methods is designed to use the credentials you provide and authenticate you using a third party basic auth service provider. Hope this makes sense. Massimo On Sep 29, 4:32 am, olivier <[email protected]> wrote: > i would like to setup an authenticated API for my web2py project. > how could i use a custom login_methods to authenticate user through > basic http authentication? > it seems that 'login_bare' doesn't use auth.settings.login_methods? > > thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

