Hello Ruslan, I tried to use the "authapi.login_user" method but it looks to me like the login_bare method works better and requires less coding to make it work. I currently have added the login code to the "user" method in the "default.py".
When I used the "authapi.login_user" method, it logs my user in, but still displays the login window instead of skipping it as I would like. When I use the "login_bare" method, it does not display the login window. Thanks you for you time, On Thursday, October 17, 2019 at 4:59:54 PM UTC+2, Ruslan Gareev wrote: > > Hi, i think that a "login_user" method in AuthApi meets your reqests. > > четверг, 17 октября 2019 г., 13:33:43 UTC+5 пользователь Davidiam написал: >> >> Hello, >> >> We pre-authenticate users outside of web2py via SAML and the user lands >> on a page where he can choose from a list of applications. >> When the user selects an application, he needs to be set as "logged in" >> for that web2py application as long as there his userid exists in the auth >> table (no password).. >> >> I do not see any login method that allows us to just say : "set this user >> as logged in". >> >> The closest I see is the "login_bare" function, but that expects a >> password and these users do not have a password entry in the auth table. >> >> Any ideas on the best way to handle this scenario ? >> >> Note : I would really like to avoid using the SAML login modules as these >> are an uphill battle on Windows IIS and we already have a working >> authentication for the users via Shibboleth SP. >> >> Kind Regards, >> David >> > -- 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/80e2e167-47aa-4a0c-94f3-c2ab2c5cbdca%40googlegroups.com.