File tree Expand file tree Collapse file tree 4 files changed +31
-0
lines changed
openid-connect-common/src/main/java/org/mitre
openid-connect-server-webapp/src/main/webapp/resources Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 33
33
import com .nimbusds .jose .JWEAlgorithm ;
34
34
import com .nimbusds .jose .JWSAlgorithm ;
35
35
import com .nimbusds .jose .jwk .JWKSet ;
36
+ import com .nimbusds .jwt .JWT ;
36
37
37
38
/**
38
39
* @author jricher
@@ -799,6 +800,22 @@ public void setClaimsRedirectUris(Set<String> claimsRedirectUris) {
799
800
client .setClaimsRedirectUris (claimsRedirectUris );
800
801
}
801
802
803
+ /**
804
+ * @return
805
+ * @see org.mitre.oauth2.model.ClientDetailsEntity#getSoftwareStatement()
806
+ */
807
+ public JWT getSoftwareStatement () {
808
+ return client .getSoftwareStatement ();
809
+ }
810
+
811
+ /**
812
+ * @param softwareStatement
813
+ * @see org.mitre.oauth2.model.ClientDetailsEntity#setSoftwareStatement(com.nimbusds.jwt.JWT)
814
+ */
815
+ public void setSoftwareStatement (JWT softwareStatement ) {
816
+ client .setSoftwareStatement (softwareStatement );
817
+ }
818
+
802
819
/**
803
820
* @return the src
804
821
*/
Original file line number Diff line number Diff line change @@ -339,6 +339,10 @@ public static JsonObject serialize(RegisteredClient c) {
339
339
340
340
o .add (CLAIMS_REDIRECT_URIS , getAsArray (c .getClaimsRedirectUris ()));
341
341
342
+ if (c .getSoftwareStatement () != null ) {
343
+ o .addProperty (SOFTWARE_STATEMENT , c .getSoftwareStatement ().serialize ());
344
+ }
345
+
342
346
return o ;
343
347
}
344
348
Original file line number Diff line number Diff line change @@ -416,6 +416,7 @@ var DynRegEditView = Backbone.View.extend({
416
416
jwks_uri : jwksUri ,
417
417
jwks : jwks ,
418
418
subject_type : subjectType ,
419
+ software_statement : $ ( '#softwareStatement textarea' ) . val ( ) ,
419
420
token_endpoint_auth_method : $ ( '#tokenEndpointAuthMethod input' ) . filter ( ':checked' ) . val ( ) ,
420
421
response_types : responseTypes ,
421
422
sector_identifier_uri : sectorIdentifierUri ,
Original file line number Diff line number Diff line change @@ -210,6 +210,15 @@ <h1 data-i18n="client.client-form.edit"></h1>
210
210
< div > </ div >
211
211
</ div >
212
212
</ div >
213
+ < div class = "control-group" id = "softwareStatement" >
214
+ < label class = "control-label" data-i18n = "client.client-form.software-statement" > Software Statement</ label >
215
+ < div class = "controls" >
216
+ < textarea class = "input-xlarge" placeholder = "ejy0..." maxlength = "4096"
217
+ rows = "3" data-i18n = "[placeholder]client.client-form.software-statement-placeholder" > < % - client . software_statement % > </ textarea >
218
+ < 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 >
219
+ </ div >
220
+ </ div >
221
+
213
222
</ div >
214
223
215
224
< div class = "tab-pane" id = "client-access-tab" >
You can’t perform that action at this time.
0 commit comments