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">
<label class="checkbox">
<input id="grantTypes-authorization_code" type="checkbox"
<label class="radio">
<input id="grantTypes-authorization_code" type="radio" name="grantTypes"
<%=($.inArray("authorization_code", client.grant_types) > -1 ? 'checked' : '')%>>
authorization code
</label>
<label class="checkbox">
<input id="grantTypes-client_credentials" type="checkbox"
<label class="radio">
<input id="grantTypes-client_credentials" type="radio" name="grantTypes"
<%=($.inArray("client_credentials", client.grant_types) > -1 ? 'checked' : '')%>> client credentials
</label>
<label class="checkbox">
<input id="grantTypes-implicit" type="checkbox" <%=($.inArray("implicit", client.grant_types) > -1 ? 'checked' : '')%>> implicit
</label>
<!--
<label class="checkbox">
<input id="grantTypes-refresh_token" type="checkbox" <%=($.inArray("refresh_token", client.grant_types) > -1 ? 'checked' : '')%>> refresh
<label class="radio">
<input id="grantTypes-implicit" type="radio" name="grantTypes"
<%=($.inArray("implicit", client.grant_types) > -1 ? 'checked' : '')%>> implicit
</label>
-->
<label class="checkbox">
<input id="grantTypes-redelegate" type="checkbox" <%=($.inArray("urn:ietf:params:oauth:grant_type:redelegate", client.grant_types) > -1 ? 'checked' : '')%>> redelegate
</label>

Loading…
Cancel
Save