|
|
|
@ -160,7 +160,7 @@
|
|
|
|
|
// We can pass it default values.
|
|
|
|
|
defaults:{
|
|
|
|
|
id:null,
|
|
|
|
|
idTokenValiditySeconds: 0,
|
|
|
|
|
idTokenValiditySeconds: 600,
|
|
|
|
|
applicationName:"",
|
|
|
|
|
clientSecret:"",
|
|
|
|
|
registeredRedirectUri:[],
|
|
|
|
@ -171,8 +171,8 @@
|
|
|
|
|
logoUrl:"",
|
|
|
|
|
clientId:"",
|
|
|
|
|
allowRefresh:false,
|
|
|
|
|
accessTokenValiditySeconds: 0,
|
|
|
|
|
refreshTokenValiditySeconds: 0,
|
|
|
|
|
accessTokenValiditySeconds: 3600,
|
|
|
|
|
refreshTokenValiditySeconds: 604800,
|
|
|
|
|
displayClientSecret: false,
|
|
|
|
|
generateClientSecret: false,
|
|
|
|
|
requireClientSecret: true
|
|
|
|
@ -332,6 +332,7 @@
|
|
|
|
|
|
|
|
|
|
events:{
|
|
|
|
|
"click .btn-primary":"saveClient",
|
|
|
|
|
"click #allowRefresh" : "toggleRefreshTokenTimeout",
|
|
|
|
|
"click .btn-cancel": function() { window.history.back(); return false; },
|
|
|
|
|
"change #requireClientSecret":"toggleRequireClientSecret",
|
|
|
|
|
"change #displayClientSecret":"toggleDisplayClientSecret",
|
|
|
|
@ -339,6 +340,10 @@
|
|
|
|
|
"change #logoUrl input":"previewLogo"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
toggleRefreshTokenTimeout:function () {
|
|
|
|
|
$("#refreshTokenValiditySeconds", this.$el).toggle();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
previewLogo:function(event) {
|
|
|
|
|
if ($('#logoUrl input').val()) {
|
|
|
|
|
//$('#logoBlock').show();
|
|
|
|
@ -483,6 +488,10 @@
|
|
|
|
|
, autocomplete: _.uniq(_.flatten(app.clientList.pluck("scope")))
|
|
|
|
|
, collection: this.scopeCollection}).render().el);
|
|
|
|
|
|
|
|
|
|
if (!this.model.get("allowRefresh")) {
|
|
|
|
|
$("#refreshTokenValiditySeconds", this.$el).hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|