Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d55863dd
Commit
d55863dd
authored
Aug 07, 2015
by
Bertrand Marron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pep8 errors
parent
1e29f258
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
common/djangoapps/third_party_auth/middleware.py
+1
-0
common/djangoapps/third_party_auth/portal.py
+4
-2
No files found.
common/djangoapps/third_party_auth/middleware.py
View file @
d55863dd
...
...
@@ -16,6 +16,7 @@ from . import pipeline
log
=
logging
.
getLogger
(
__file__
)
class
ExceptionMiddleware
(
SocialAuthExceptionMiddleware
):
"""Custom middleware that handles conditional redirection."""
...
...
common/djangoapps/third_party_auth/portal.py
View file @
d55863dd
...
...
@@ -37,5 +37,7 @@ class PortalOAuth2(BaseOAuth2):
def
process_error
(
self
,
data
):
super
(
PortalOAuth2
,
self
)
.
process_error
(
data
)
if
data
.
get
(
'error_code'
):
raise
AuthCanceled
(
self
,
data
.
get
(
'error_message'
)
or
data
.
get
(
'error_code'
))
raise
AuthCanceled
(
self
,
data
.
get
(
'error_message'
)
or
data
.
get
(
'error_code'
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment