Hi, I'm trying to set up a RESTful API in web2py and have run into some troubles with authentication. The server running the API is setup with WSGI, forced HTTPS and the API controller actions have the @auth.requires_login() decorators.
The problem is that I'm not able to make requests to the API via curl or other command-line/script clients. It all works well locally when I use the Rocket server and the "auth.settings.allow_basic_login = True" in the controller. The same does however not work on the production server with WSGI and Apache, or locally without the setting for that part. I have tried all different types of methods, including sending cookies with the curl request. Am I missing something here? What is the preferred solution for Auth for RESTfil APIs in web2py? Best regards, Fredrik -- 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. For more options, visit https://groups.google.com/groups/opt_out.