Fix SSO

Store the user in the database so we can properly support permissions.