On Wednesday, April 26, 2017 at 6:46:07 AM UTC-7, Oasis Agano wrote: > > Hello, > > I'm trying to create a method that gets credentials from the url as > arguments and works as the normal login of web2py then return a token or > session id. > is there a safe way of doing it. > > kr > oasis >
Basic Auth as the first step, then JWT for the rest? (for the REST?). <URL:http://web2py.com/books/default/chapter/29/09/access-control#Access-Control-and-Basic-Authentication> and the JWT documentation is mainly in the class declaration comments in gluon/tools.py. (Niphlod posted some of that in the threads that introduced JWT a couple years ago.) /dps -- 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/d/optout.