Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
check for oauth_problem get params instead of denied for linkedin Aut…
…henticationDenied
  • Loading branch information
smarzola committed Oct 4, 2013
commit 30fdef75c15526e1a9ff4e8867e232779102019a
5 changes: 3 additions & 2 deletions velruse/providers/linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ def login(self, request):

def callback(self, request):
"""Process the LinkedIn redirect"""
if 'denied' in request.GET:
return AuthenticationDenied("User denied authentication",
if 'oauth_problem' in request.GET:
oauth_problems = ','.join(request.GET.getall('oauth_problem'))
return AuthenticationDenied("ProblemReporting: %s" % oauth_problems,
provider_name=self.name,
provider_type=self.type)

Expand Down