Hi, quick question! I am working on an internal API using web2py and the organization I am working for wants us to use JWTs. I have had no success with the JWTAuth in the tools file, but have successfully been able to redirect to the single sing-on provider and then validate the token as the single sign on provider redirects back to the web2py service.
So basically I have been able to validate that a user with a given username is allowed to log in. Now, the question becomes, how do I log in the user? Assume the user already exists within the Auth DB for now. In the long run I will need to update user permission and LDAP groups and so on, but now I just need how to login problematically when I know the user is allowed to login by a validated JWT token, but I have no password or anything else except the username, # Code to validate JWT token.. username = validated_jwt_token.preffered_username. Auth.login(username) # User should now be logged in. Any idea? Thanks! -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/0c6cfe00-9e4d-416a-b547-76809c19e751o%40googlegroups.com.

