Revision 6b5b443b

b/snf-common/synnefo/lib/astakos.py
83 83
    except:
84 84
        return None
85 85

  
86
def get_user(request, authentication_url='http://127.0.0.1:8000/im/authenticate', override_users={}):
86
def get_user(request, authentication_url='http://127.0.0.1:8000/im/authenticate', override_users={}, fallback_token=None):
87 87
    request.user = None
88 88
    request.user_uniq = None
89 89
    
......
92 92
    if not user:
93 93
        user = user_for_token(request.META.get('HTTP_X_AUTH_TOKEN'), authentication_url, override_users)
94 94
    if not user:
95
        user = user_for_token(fallback_token, authentication_url, override_users)
96
    if not user:
95 97
        return
96 98
    
97 99
    request.user = user

Also available in: Unified diff