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
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