Updated client side variable names to reflect name changes to access token and refresh token timeout
parent
ef6c2b56e8
commit
8fbea2516a
|
@ -29,11 +29,11 @@
|
||||||
minlength:3,*/
|
minlength:3,*/
|
||||||
maxlength:200
|
maxlength:200
|
||||||
},
|
},
|
||||||
accessTokenTimeout: {
|
accessTokenValiditySeconds: {
|
||||||
required: true,
|
required: true,
|
||||||
type:"number"
|
type:"number"
|
||||||
},
|
},
|
||||||
refreshTokenTimeout: {
|
refreshTokenValiditySeconds: {
|
||||||
required: true,
|
required: true,
|
||||||
type:"number"
|
type:"number"
|
||||||
},
|
},
|
||||||
|
@ -68,8 +68,8 @@
|
||||||
clientDescription:"",
|
clientDescription:"",
|
||||||
clientId:null,
|
clientId:null,
|
||||||
allowRefresh:false,
|
allowRefresh:false,
|
||||||
accessTokenTimeout: 0,
|
accessTokenValiditySeconds: 0,
|
||||||
refreshTokenTimeout: 0
|
refreshTokenValiditySeconds: 0
|
||||||
},
|
},
|
||||||
|
|
||||||
urlRoot:"api/clients"
|
urlRoot:"api/clients"
|
||||||
|
@ -196,8 +196,8 @@
|
||||||
registeredRedirectUri:$.trim($('#registeredRedirectUri textarea').val()).replace(/ /g,'').split("\n"),
|
registeredRedirectUri:$.trim($('#registeredRedirectUri textarea').val()).replace(/ /g,'').split("\n"),
|
||||||
clientDescription:$('#clientDescription textarea').val(),
|
clientDescription:$('#clientDescription textarea').val(),
|
||||||
allowRefresh:$('#allowRefresh').is(':checked'),
|
allowRefresh:$('#allowRefresh').is(':checked'),
|
||||||
accessTokenTimeout: $('#accessTokenTimeout input').val(),
|
accessTokenValiditySeconds: $('#accessTokenValiditySeconds input').val(),
|
||||||
refreshTokenTimeout: $('#refreshTokenTimeout input').val(),
|
refreshTokenValiditySeconds: $('#refreshTokenValiditySeconds input').val(),
|
||||||
scope:$.map($('#scope textarea').val().replace(/,$/,'').replace(/\s/g,' ').split(","), $.trim)
|
scope:$.map($('#scope textarea').val().replace(/,$/,'').replace(/\s/g,' ').split(","), $.trim)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -206,8 +206,8 @@
|
||||||
success:function () {
|
success:function () {
|
||||||
app.navigate('clients', {trigger:true});
|
app.navigate('clients', {trigger:true});
|
||||||
},
|
},
|
||||||
error:function () {
|
error:function (model,resp) {
|
||||||
|
console.error("Oops! The object didn't save correctly.",resp);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -217,8 +217,8 @@
|
||||||
success:function () {
|
success:function () {
|
||||||
app.navigate('clients', {trigger:true});
|
app.navigate('clients', {trigger:true});
|
||||||
},
|
},
|
||||||
error:function () {
|
error:function (model,resp) {
|
||||||
|
console.error("Oops! The object didn't create correctly.",resp);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -153,25 +153,25 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<span class="control-group" id="accessTokenTimeout">
|
<span class="control-group" id="accessTokenValiditySeconds">
|
||||||
<label class="control-label" for="access-token-timeout-seconds" style="">Access Token
|
<label class="control-label" for="access-token-timeout-seconds" style="">Access Token
|
||||||
Timeout</label>
|
Timeout</label>
|
||||||
|
|
||||||
<div class="controls form-horizontal" style="">
|
<div class="controls form-horizontal" style="">
|
||||||
<div class="input-append">
|
<div class="input-append">
|
||||||
<input type="text" class="" value="<%=accessTokenTimeout%>" id="access-token-timeout-seconds" size="16"><span
|
<input type="text" class="" value="<%=accessTokenValiditySeconds%>" id="access-token-timeout-seconds" size="16"><span
|
||||||
class="add-on">seconds</span>
|
class="add-on">seconds</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="help-inline">Enter this time in seconds</span>
|
<span class="help-inline">Enter this time in seconds</span>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
<span class="control-group" id="refreshTokenTimeout">
|
<span class="control-group" id="refreshTokenValiditySeconds">
|
||||||
<label class="control-label" for="refresh-token-timeout-seconds" style="">Refresh Token
|
<label class="control-label" for="refresh-token-timeout-seconds" style="">Refresh Token
|
||||||
Timeout</label>
|
Timeout</label>
|
||||||
|
|
||||||
<div class="controls form-horizontal" style="">
|
<div class="controls form-horizontal" style="">
|
||||||
<div class="input-append">
|
<div class="input-append">
|
||||||
<input type="text" class="" value="<%=refreshTokenTimeout%>" id="refresh-token-timeout-seconds" size="16"><span
|
<input type="text" class="" value="<%=refreshTokenValiditySeconds%>" id="refresh-token-timeout-seconds" size="16"><span
|
||||||
class="add-on">seconds</span>
|
class="add-on">seconds</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="help-inline">Enter this time in seconds</span>
|
<span class="help-inline">Enter this time in seconds</span>
|
||||||
|
|
Loading…
Reference in New Issue