Massimo - thanks for that info. This won't help in my case as I'm using the RESTful API to get access to another of my server-side python packages. But, I can see the power of the DBAPI. I'm waiting for you to stabilize web3py before I jump in. I'd love to get involved in more testing but I haven't been able to free up the time.
My current python2 web2py app is too big for me to try to bring to web3py before the Python 2 drop dead date so I'm also working to test all of that under python 3. It's a busy (and exciting) year! Thanks again for all you do! -Jim On Tue, May 14, 2019 at 1:51 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > You may want to see my other post about the new policy based DBAPI. > > On Monday, 13 May 2019 09:28:11 UTC-7, Jim S wrote: >> >> Hi >> >> I'm setting up a REST service that requires authentication. I'm >> following the example here: >> >> http://web2py.com/books/default/chapter/29/10/services#Access-Control >> >> Here is the example with basic login: >> >> auth.settings.allow_basic_login = True >> >> @auth.requires_login() >> @request.restful() >> def api(): >> def GET(s): >> return 'access granted, you said %s' % s >> return locals() >> >> However, I'd like to use email authentication instead of basic_login. >> >> When I remove the first line, and pass proper email address and password, >> I get a 403 return code. >> >> Anyone had success with a RESTful service using email authentication? >> >> -Jim >> > -- > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/7DfbZY6xRWU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/e566fd9f-dd15-4225-b3d3-c5852d1c07c9%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/e566fd9f-dd15-4225-b3d3-c5852d1c07c9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAERBpoAojetiMwRcruWO%3DTpdPsDUhkcOjp%2B5uXDF8fcEBTj8Gg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.