Re: how to skip default authentication handler in cherryPy framework to provide REST api call to login using basic authentication form another app
Nicklas Börjesson <[email protected]>
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
Either you write you own /login?username=username&password=test that adds to the sessions or you make your own handler? Not sure what you mean otherwise? //Nicklas On Thursday, December 24, 2015 at 8:09:57 AM UTC+1, Dharmendra Shaw wrote: > > I am using cherrypy for my web app for authentication we are using > "tools.session_auth.login_screen " and > "tools.session_auth.check_username_and_password" handlers for login > authentication > > Now I have a need to support login to app using REST api call something > like below url using basic authentication call from another app > login?username=username&password=test > But This would not work as I am using default handler of cherryPy to > handle the authentication > > Could you please help me to come up with a solution for this requiremnet > -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout.