added in all extra fields to JS processor

pull/306/merge
Justin Richer 2013-03-04 17:11:44 -05:00
parent ac44020305
commit a0c2e94922
1 changed files with 32 additions and 5 deletions

View File

@ -336,8 +336,8 @@ var ClientFormView = Backbone.View.extend({
var refreshTokenValiditySeconds = null;
if ($('#allowRefresh').is(':checked')) {
if ($.inArray('refresh_token', authorizedGrantTypes) == -1) {
authorizedGrantTypes.push('refresh_token');
if ($.inArray('refresh_token', grantTypes) == -1) {
grantTypes.push('refresh_token');
}
if ($.inArray('offline_access', scopes) == -1) {
@ -361,11 +361,38 @@ var ClientFormView = Backbone.View.extend({
accessTokenValiditySeconds: accessTokenValiditySeconds,
refreshTokenValiditySeconds: refreshTokenValiditySeconds,
idTokenValiditySeconds: idTokenValiditySeconds,
allowRefresh: $('#allowRefresh').is(':checked'),
allowIntrospection: $('#allowIntrospection input').is(':checked'),
scope: scopes,
allowRefresh: $('#allowRefresh').is(':checked'), // TODO: why are these two checkboxes different?
allowIntrospection: $('#allowIntrospection input').is(':checked'), // <-- And here? --^
scope: scopes
,
// TODO: everything below this line isn't implemented yet
contacts: this.contactsCollection.pluck('item'),
tosUri: $('#tosUri input').val(),
tokenEndpointAuthMethod: $('#tokenEndpointAuthMethod input').val(), // TODO: this might need to be something different for a single-select?
responseTypes: responseTypes, // TODO: need a preprocessor?
policyUri: $('#policyUri input').val(),
jwksUri: $('#jwksUri input').val(),
applicationType: applicationType, // TODO: need a preprocessor?
sectorIdentifierUri: $('#sectorIdentifierUri input').val(),
subjectType: subjectType, // TODO: need a preprocessor?
requestObjectSigningAlg: requestObjectSigningAlg, // TODO: need a preprocessor for all the JOSE stuff:
userInfoEncryptedResponseAlg: userInfoEncryptedResponseAlg, // "
userInfoEncryptedResponseEnc: userInfoEncryptedResponseEnc, // "
idTokenSignedResponseAlg: idTokenSignedResponseAlg, // "
idTokenEncryptedResponseAlg: idTokenEncryptedResponseAlg, // "
idTokenEncryptedResponseEnc: idTokenEncryptedResponseEnc, // "
defaultMaxAge: $('#defaultMaxAge input').val(), // TODO: validate integer
requireAuthTime: $('#requireAuthTime input').is(':checked'),
defaultAcrValues: this.defaultAcrValuesCollection.pluck('item'),
initiateLoginUri: $('#initiateLoginUri input').val(),
postLogoutRedirectUri: $('#postLogoutRedirectUri input').val(),
requestUris: this.requestUrisCollection.pluck('item'),
resourceIds: this.resourceIdsCollection.pluck('item'),
reuseRefreshToken: $('#reuseRefreshToken input').is(':checked')
});
// post-validate