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
ce8a6e5b
Commit
ce8a6e5b
authored
Apr 14, 2015
by
Greg Price
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7666 from edx/gprice/fix-oauth-exchange
Enable OAuth token exchange only if OAuth provider
parents
860cc8f2
903422b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lms/urls.py
+8
-3
No files found.
lms/urls.py
View file @
ce8a6e5b
...
...
@@ -617,14 +617,19 @@ if settings.FEATURES.get('AUTOMATIC_AUTH_FOR_TESTING'):
if
settings
.
FEATURES
.
get
(
'ENABLE_THIRD_PARTY_AUTH'
):
urlpatterns
+=
(
url
(
r''
,
include
(
'third_party_auth.urls'
)),
# NOTE: The following login_oauth_token endpoint is DEPRECATED.
# Please use the exchange_access_token endpoint instead.
url
(
r'^login_oauth_token/(?P<backend>[^/]+)/$'
,
'student.views.login_oauth_token'
),
)
# OAuth token exchange
if
settings
.
FEATURES
.
get
(
'ENABLE_THIRD_PARTY_AUTH'
)
and
settings
.
FEATURES
.
get
(
'ENABLE_OAUTH2_PROVIDER'
):
urlpatterns
+=
(
url
(
r'^oauth2/exchange_access_token/(?P<backend>[^/]+)/$'
,
oauth_exchange
.
views
.
AccessTokenExchangeView
.
as_view
(),
name
=
"exchange_access_token"
),
# NOTE: The following login_oauth_token endpoint is DEPRECATED.
# Please use the exchange_access_token endpoint instead.
url
(
r'^login_oauth_token/(?P<backend>[^/]+)/$'
,
'student.views.login_oauth_token'
),
)
# Certificates Web/HTML View
...
...
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