Skip to content

Commit 842300b

Browse files
committed
add graceful openid failures
1 parent e955ede commit 842300b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
1.7.5 (unreleased)
22
------------------
33

4-
- Nothing changed yet.
4+
- openid fixes [amleczko]
55

66

77
1.7.4 (2013-05-07)

por/dashboard/security/openid2.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from velruse.providers import google
22
from velruse.exceptions import ThirdPartyFailure
3+
from velruse.exceptions import AuthenticationDenied
34
from pyramid.httpexceptions import HTTPFound
45

56

@@ -48,3 +49,6 @@ def process(self, request):
4849
return super(RedturtleConsumer, self).process(request)
4950
except ThirdPartyFailure:
5051
raise HTTPFound(location='/')
52+
except AuthenticationDenied:
53+
request.add_message('Authentication from google has failed. Try again.', 'error')
54+
raise HTTPFound(location='/')

0 commit comments

Comments
 (0)