Browse Source

cleaned up dynreg self-service page to account for single-selection of grant types

pull/612/head
Justin Richer 11 years ago
parent
commit
22ab1173a7
  1. 18
      openid-connect-server-webapp/src/main/webapp/resources/template/dynreg.html

18
openid-connect-server-webapp/src/main/webapp/resources/template/dynreg.html

@ -232,23 +232,19 @@
<div class="controls"> <div class="controls">
<label class="checkbox"> <label class="radio">
<input id="grantTypes-authorization_code" type="checkbox" <input id="grantTypes-authorization_code" type="radio" name="grantTypes"
<%=($.inArray("authorization_code", client.grant_types) > -1 ? 'checked' : '')%>> <%=($.inArray("authorization_code", client.grant_types) > -1 ? 'checked' : '')%>>
authorization code authorization code
</label> </label>
<label class="checkbox"> <label class="radio">
<input id="grantTypes-client_credentials" type="checkbox" <input id="grantTypes-client_credentials" type="radio" name="grantTypes"
<%=($.inArray("client_credentials", client.grant_types) > -1 ? 'checked' : '')%>> client credentials <%=($.inArray("client_credentials", client.grant_types) > -1 ? 'checked' : '')%>> client credentials
</label> </label>
<label class="checkbox"> <label class="radio">
<input id="grantTypes-implicit" type="checkbox" <%=($.inArray("implicit", client.grant_types) > -1 ? 'checked' : '')%>> implicit <input id="grantTypes-implicit" type="radio" name="grantTypes"
</label> <%=($.inArray("implicit", client.grant_types) > -1 ? 'checked' : '')%>> implicit
<!--
<label class="checkbox">
<input id="grantTypes-refresh_token" type="checkbox" <%=($.inArray("refresh_token", client.grant_types) > -1 ? 'checked' : '')%>> refresh
</label> </label>
-->
<label class="checkbox"> <label class="checkbox">
<input id="grantTypes-redelegate" type="checkbox" <%=($.inArray("urn:ietf:params:oauth:grant_type:redelegate", client.grant_types) > -1 ? 'checked' : '')%>> redelegate <input id="grantTypes-redelegate" type="checkbox" <%=($.inArray("urn:ietf:params:oauth:grant_type:redelegate", client.grant_types) > -1 ? 'checked' : '')%>> redelegate
</label> </label>

Loading…
Cancel
Save