From 57042719738014ffebeb835793756da68d2bb7a1 Mon Sep 17 00:00:00 2001 From: Amanda Anganes Date: Fri, 22 Mar 2013 17:15:14 -0400 Subject: [PATCH] Fixed client error: added all client fields to model in client.js; lined them up with the fields in ClientDetailsEntity.java for easier comparison --- .../src/main/webapp/resources/js/client.js | 55 ++++++++++++++++--- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/openid-connect-server/src/main/webapp/resources/js/client.js b/openid-connect-server/src/main/webapp/resources/js/client.js index 1e88af73c..e18b8fdf3 100644 --- a/openid-connect-server/src/main/webapp/resources/js/client.js +++ b/openid-connect-server/src/main/webapp/resources/js/client.js @@ -17,23 +17,62 @@ var ClientModel = Backbone.Model.extend({ // We can pass it default values. defaults:{ id:null, - idTokenValiditySeconds: 600, - clientName:null, + + clientId:"", clientSecret:"", redirectUris:[], - grantTypes:["authorization_code"], + clientName:null, + clientUri:"", + logoUri:"", + contacts:[], + tosUri:"", + tokenEndpointAuthMethod:null, scope:[], + grantTypes:["authorization_code"], + responseTypes:[], + policyUri:"", + jwksUri:"", + + applicationType:null, + sectorIdentifierUri:"", + subjectType:null, + + requestObjectSigningAlg:null, + + userInfoSignedResponseAlg:null, + userInfoEncryptedResponseAlg:null, + userInfoEncryptedResponseEnc:null, + + idTokenSignedResponseAlg:null, + idTokenEncryptedResponseAlg:null, + idTokenEncryptedResponseEnc:null, + + defaultMaxAge:60000, + requireAuthTime:false, + defaultACRvalues:null, + + initiateLoginUri:"", + postLogoutRedirectUri:"", + + requestUris:[], + authorities:[], - clientDescription:"", - logoUri:"", - clientId:"", - allowRefresh:false, accessTokenValiditySeconds: 3600, refreshTokenValiditySeconds: 604800, + resourceIds:[], + //additionalInformation? + + clientDescription:"", + reuseRefreshToken:true, + dynamicallyRegistered:false, + allowIntrospection:false, + idTokenValiditySeconds: 600, + createdAt:null, + + allowRefresh:false, displayClientSecret: false, generateClientSecret: false, requireClientSecret: true, - allowIntrospection: false }, urlRoot:"api/clients"