From c1ee5141a42b9b777cedb235c4e01a261db366a1 Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Thu, 15 Aug 2013 15:50:36 -0400 Subject: [PATCH] added back default timeouts and fixed refresh token check --- openid-connect-server/src/main/webapp/resources/js/admin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openid-connect-server/src/main/webapp/resources/js/admin.js b/openid-connect-server/src/main/webapp/resources/js/admin.js index d4228a8d6..06ce37f20 100644 --- a/openid-connect-server/src/main/webapp/resources/js/admin.js +++ b/openid-connect-server/src/main/webapp/resources/js/admin.js @@ -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 });