Commit 3567c4e4 by Simon Chen Committed by GitHub

Merge pull request #14058 from edx/schen/ECOM-6396

Remove JWT authentication validator to fix program editor on studio bug
parents 5492fb9b 664920b9
define([
'backbone',
'js/programs/utils/auth_utils'
],
function(Backbone, auth) {
'use strict';
return Backbone.Collection.extend(auth.autoSync);
}
);
......@@ -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 AutoAuthCollection.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;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment