Beispiel #1
0
 def shib_user_login(self):
     """
     create login info for shibboleth user
     :return:
     """
     session['user_id'] = self.user.id
     session['user_src'] = 'Shib'
     user_logged_in.send(current_app._get_current_object(), user=self.user)
     pass
def login_user(user):
    if current_app.config['LIMIT_TO_ONE_SESSION']:
        user.tick += 1
    login_manager.reload_user(user=user)
    user_logged_in.send(current_app._get_current_object(), user=user)
    return generate_auth_token(user)