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
664920b9
Commit
664920b9
authored
Nov 28, 2016
by
Simon Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the Javascript to remove JWT token auth
ECOM-6396
parent
5492fb9b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
+3
-14
cms/static/js/programs/collections/auto_auth_collection.js
+0
-10
cms/static/js/programs/collections/course_runs_collection.js
+3
-4
No files found.
cms/static/js/programs/collections/auto_auth_collection.js
deleted
100644 → 0
View file @
5492fb9b
define
([
'backbone'
,
'js/programs/utils/auth_utils'
],
function
(
Backbone
,
auth
)
{
'use strict'
;
return
Backbone
.
Collection
.
extend
(
auth
.
autoSync
);
}
);
cms/static/js/programs/collections/course_runs_collection.js
View file @
664920b9
...
@@ -2,19 +2,18 @@ define([
...
@@ -2,19 +2,18 @@ define([
'backbone'
,
'backbone'
,
'jquery'
,
'jquery'
,
'js/programs/utils/api_config'
,
'js/programs/utils/api_config'
,
'js/programs/collections/auto_auth_collection'
,
'jquery.cookie'
'jquery.cookie'
],
],
function
(
Backbone
,
$
,
apiConfig
,
AutoAuthCollection
)
{
function
(
Backbone
,
$
,
apiConfig
)
{
'use strict'
;
'use strict'
;
return
AutoAuth
Collection
.
extend
({
return
Backbone
.
Collection
.
extend
({
allRuns
:
[],
allRuns
:
[],
initialize
:
function
(
models
,
options
)
{
initialize
:
function
(
models
,
options
)
{
// Ignore pagination and give me everything
// Ignore pagination and give me everything
var
orgStr
=
options
.
organization
.
key
,
var
orgStr
=
options
.
organization
.
key
,
queries
=
'?org='
+
orgStr
+
'&
username='
+
apiConfig
.
get
(
'username'
)
+
'&
page_size=1000'
;
queries
=
'?org='
+
orgStr
+
'&page_size=1000'
;
this
.
url
=
apiConfig
.
get
(
'lmsBaseUrl'
)
+
'api/courses/v1/courses/'
+
queries
;
this
.
url
=
apiConfig
.
get
(
'lmsBaseUrl'
)
+
'api/courses/v1/courses/'
+
queries
;
},
},
...
...
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