added software statement to dynamic registration self-service
parent
57208ac35d
commit
d1d05e506e
|
@ -33,6 +33,7 @@ import com.nimbusds.jose.EncryptionMethod;
|
|||
import com.nimbusds.jose.JWEAlgorithm;
|
||||
import com.nimbusds.jose.JWSAlgorithm;
|
||||
import com.nimbusds.jose.jwk.JWKSet;
|
||||
import com.nimbusds.jwt.JWT;
|
||||
|
||||
/**
|
||||
* @author jricher
|
||||
|
@ -799,6 +800,22 @@ public class RegisteredClient {
|
|||
client.setClaimsRedirectUris(claimsRedirectUris);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see org.mitre.oauth2.model.ClientDetailsEntity#getSoftwareStatement()
|
||||
*/
|
||||
public JWT getSoftwareStatement() {
|
||||
return client.getSoftwareStatement();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param softwareStatement
|
||||
* @see org.mitre.oauth2.model.ClientDetailsEntity#setSoftwareStatement(com.nimbusds.jwt.JWT)
|
||||
*/
|
||||
public void setSoftwareStatement(JWT softwareStatement) {
|
||||
client.setSoftwareStatement(softwareStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the src
|
||||
*/
|
||||
|
|
|
@ -339,6 +339,10 @@ public class ClientDetailsEntityJsonProcessor {
|
|||
|
||||
o.add(CLAIMS_REDIRECT_URIS, getAsArray(c.getClaimsRedirectUris()));
|
||||
|
||||
if (c.getSoftwareStatement() != null) {
|
||||
o.addProperty(SOFTWARE_STATEMENT, c.getSoftwareStatement().serialize());
|
||||
}
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
|
|
|
@ -416,6 +416,7 @@ var DynRegEditView = Backbone.View.extend({
|
|||
jwks_uri: jwksUri,
|
||||
jwks: jwks,
|
||||
subject_type: subjectType,
|
||||
software_statement: $('#softwareStatement textarea').val(),
|
||||
token_endpoint_auth_method: $('#tokenEndpointAuthMethod input').filter(':checked').val(),
|
||||
response_types: responseTypes,
|
||||
sector_identifier_uri: sectorIdentifierUri,
|
||||
|
|
|
@ -210,6 +210,15 @@
|
|||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group" id="softwareStatement">
|
||||
<label class="control-label" data-i18n="client.client-form.software-statement">Software Statement</label>
|
||||
<div class="controls">
|
||||
<textarea class="input-xlarge" placeholder="ejy0..." maxlength="4096"
|
||||
rows="3" data-i18n="[placeholder]client.client-form.software-statement-placeholder"><%-client.software_statement%></textarea>
|
||||
<p class="help-block" data-i18n="client.client-form.software-statement-help">A software statement is issued by a trusted third party and locks certain elements of a client's registration</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="client-access-tab">
|
||||
|
|
Loading…
Reference in New Issue