Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
664920b9
Commit
664920b9
authored
8 years ago
by
Simon Chen
Browse files
Options
Downloads
Patches
Plain Diff
Update the Javascript to remove JWT token auth
ECOM-6396
parent
5492fb9b
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cms/static/js/programs/collections/auto_auth_collection.js
+0
-10
0 additions, 10 deletions
cms/static/js/programs/collections/auto_auth_collection.js
cms/static/js/programs/collections/course_runs_collection.js
+3
-4
3 additions, 4 deletions
cms/static/js/programs/collections/course_runs_collection.js
with
3 additions
and
14 deletions
cms/static/js/programs/collections/auto_auth_collection.js
deleted
100644 → 0
+
0
−
10
View file @
5492fb9b
define
([
'
backbone
'
,
'
js/programs/utils/auth_utils
'
],
function
(
Backbone
,
auth
)
{
'
use strict
'
;
return
Backbone
.
Collection
.
extend
(
auth
.
autoSync
);
}
);
This diff is collapsed.
Click to expand it.
cms/static/js/programs/collections/course_runs_collection.js
+
3
−
4
View file @
664920b9
...
...
@@ -2,19 +2,18 @@ define([
'
backbone
'
,
'
jquery
'
,
'
js/programs/utils/api_config
'
,
'
js/programs/collections/auto_auth_collection
'
,
'
jquery.cookie
'
],
function
(
Backbone
,
$
,
apiConfig
,
AutoAuthCollection
)
{
function
(
Backbone
,
$
,
apiConfig
)
{
'
use strict
'
;
return
AutoAuth
Collection
.
extend
({
return
Backbone
.
Collection
.
extend
({
allRuns
:
[],
initialize
:
function
(
models
,
options
)
{
// Ignore pagination and give me everything
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 diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment