added back default timeouts and fixed refresh token check

pull/477/head
Justin Richer 11 years ago
parent 00db39dab9
commit c1ee5141a4

@ -419,6 +419,8 @@ var AppRouter = Backbone.Router.extend({
generateClientSecret:true, generateClientSecret:true,
displayClientSecret:false, displayClientSecret:false,
scope: _.uniq(_.flatten(this.systemScopeList.defaultScopes().pluck("value"))), scope: _.uniq(_.flatten(this.systemScopeList.defaultScopes().pluck("value"))),
accessTokenValiditySeconds:3600,
idTokenValiditySeconds:600
}, { silent: true }); }, { silent: true });
this.clientFormView = new ClientFormView({model:client}); this.clientFormView = new ClientFormView({model:client});
@ -443,7 +445,7 @@ var AppRouter = Backbone.Router.extend({
}, { silent: true }); }, { silent: true });
} }
if ($.inArray("refresh_token", client.get("authorizedGrantTypes")) != -1) { if ($.inArray("refresh_token", client.get("grantTypes")) != -1) {
client.set({ client.set({
allowRefresh: true allowRefresh: true
}, { silent: true }); }, { silent: true });

Loading…
Cancel
Save