JWKS and subject type

pull/306/merge
Justin Richer 12 years ago
parent 29b46bfd58
commit 1fcb67e885

@ -370,6 +370,8 @@ var ClientFormView = Backbone.View.extend({
policyUri: $('#policyUri input').val(), policyUri: $('#policyUri input').val(),
clientUri: $('#clientUri input').val(), clientUri: $('#clientUri input').val(),
applicationType: $('#applicationType input').filter(':checked').val(), applicationType: $('#applicationType input').filter(':checked').val(),
jwksUri: $('#jwksUri input').val(),
subjectType: subjectType, // TODO: need a preprocessor?
@ -377,9 +379,7 @@ var ClientFormView = Backbone.View.extend({
contacts: this.contactsCollection.pluck('item'), contacts: this.contactsCollection.pluck('item'),
tokenEndpointAuthMethod: $('#tokenEndpointAuthMethod input').val(), // TODO: this might need to be something different for a single-select? tokenEndpointAuthMethod: $('#tokenEndpointAuthMethod input').val(), // TODO: this might need to be something different for a single-select?
responseTypes: responseTypes, // TODO: need a preprocessor? responseTypes: responseTypes, // TODO: need a preprocessor?
jwksUri: $('#jwksUri input').val(),
sectorIdentifierUri: $('#sectorIdentifierUri input').val(), sectorIdentifierUri: $('#sectorIdentifierUri input').val(),
subjectType: subjectType, // TODO: need a preprocessor?
requestObjectSigningAlg: requestObjectSigningAlg, // TODO: need a preprocessor for all the JOSE stuff: requestObjectSigningAlg: requestObjectSigningAlg, // TODO: need a preprocessor for all the JOSE stuff:
userInfoEncryptedResponseAlg: userInfoEncryptedResponseAlg, // " userInfoEncryptedResponseAlg: userInfoEncryptedResponseAlg, // "
userInfoEncryptedResponseEnc: userInfoEncryptedResponseEnc, // " userInfoEncryptedResponseEnc: userInfoEncryptedResponseEnc, // "

@ -76,6 +76,7 @@
<li><a data-target="#client-access-tab" data-toggle="tab" href="#">Access</a></li> <li><a data-target="#client-access-tab" data-toggle="tab" href="#">Access</a></li>
<li><a data-target="#client-secret-tab" data-toggle="tab" href="#">Credentials</a></li> <li><a data-target="#client-secret-tab" data-toggle="tab" href="#">Credentials</a></li>
<li><a data-target="#client-token-tab" data-toggle="tab" href="#">Tokens</a></li> <li><a data-target="#client-token-tab" data-toggle="tab" href="#">Tokens</a></li>
<li><a data-target="#client-other-tab" data-toggle="tab" href="#">Other</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
@ -270,6 +271,14 @@
</div> </div>
<div class="control-group" id="jwksUri">
<label class="control-label">JWK Set</label>
<div class="controls">
<input placeholder="http://" value="<%=jwksUri%>" maxlength="1000" type="text" class=""/>
<p class="help-block">URL for the client's JSON Web Key set</p>
</div>
</div>
</div> </div>
<div class="tab-pane" id="client-token-tab"> <div class="tab-pane" id="client-token-tab">
@ -331,9 +340,19 @@
<div class="tab-pane" id="client-other-tab"> <div class="tab-pane" id="client-other-tab">
<div class="alert alert-block alert-info"> <div class="control-group" id="subjectType">
This page intentionally left blank. <label class="control-label">Subject Type</label>
</div> <div class="controls">
<label class="radio inline">
<input type="radio" name="subjectType" value="PUBLIC" <%=(subjectType == 'PUBLIC' ? 'checked' : '')%>> Public
</label>
<label class="radio inline">
<input type="radio" name="subjectType" value="PAIRWISE" <%=(subjectType == 'PAIRWISE' ? 'checked' : '')%>> Pairwise
</label>
</div>
</div>
</div> </div>

Loading…
Cancel
Save