added back default timeouts and fixed refresh token check

pull/477/head
Justin Richer 2013-08-15 15:50:36 -04:00
parent 00db39dab9
commit c1ee5141a4
1 changed files with 3 additions and 1 deletions

View File

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