Revision 412048af
b/snf-astakos-app/astakos/im/tests/auth.py | ||
---|---|---|
384 | 384 |
@im_settings(RECAPTCHA_ENABLED=True, RATELIMIT_RETRIES_ALLOWED=3) |
385 | 385 |
def test_login_ratelimit(self): |
386 | 386 |
from django.core.cache import cache |
387 |
cache.clear() |
|
387 | 388 |
[cache.delete(key) for key in cache._cache.keys()] |
388 | 389 |
|
389 | 390 |
credentials = {'username': 'γιού τι έφ', 'password': 'password'} |
b/snf-astakos-app/astakos/im/views/target/shibboleth.py | ||
---|---|---|
72 | 72 |
pass |
73 | 73 |
|
74 | 74 |
pending_users = \ |
75 |
<<<<<<< HEAD |
|
76 | 75 |
PendingThirdPartyUser.objects.filter(third_party_identifier=eppn, |
77 | 76 |
provider='shibboleth') |
78 |
======= |
|
79 |
PendingThirdPartyUser.objects.filter(third_party_identifier=eppn, |
|
80 |
provider='shibboleth') |
|
81 |
>>>>>>> astakos: Shibboleth EPPN migration functionality |
|
82 | 77 |
|
83 | 78 |
for pending in pending_users: |
84 | 79 |
msg = "Migrating pending user %s eppn (%s -> %s)" |
... | ... | |
168 | 163 |
|
169 | 164 |
except KeyError, e: |
170 | 165 |
# invalid shibboleth headers, redirect to login, display message |
166 |
logger.exception(e) |
|
171 | 167 |
messages.error(request, e.message) |
172 | 168 |
return HttpResponseRedirect(login_url(request)) |
173 | 169 |
|
Also available in: Unified diff