|
|
@ -93,6 +93,7 @@ var ClientModel = Backbone.Model.extend({
|
|
|
|
dynamicallyRegistered:false,
|
|
|
|
dynamicallyRegistered:false,
|
|
|
|
allowIntrospection:false,
|
|
|
|
allowIntrospection:false,
|
|
|
|
idTokenValiditySeconds: null,
|
|
|
|
idTokenValiditySeconds: null,
|
|
|
|
|
|
|
|
deviceCodeValiditySeconds: null,
|
|
|
|
createdAt:null,
|
|
|
|
createdAt:null,
|
|
|
|
|
|
|
|
|
|
|
|
allowRefresh:false,
|
|
|
|
allowRefresh:false,
|
|
|
@ -790,7 +791,8 @@ var ClientFormView = Backbone.View.extend({
|
|
|
|
'implicit': 'implicit',
|
|
|
|
'implicit': 'implicit',
|
|
|
|
'client_credentials': 'client_credentials',
|
|
|
|
'client_credentials': 'client_credentials',
|
|
|
|
'redelegate': 'urn:ietf:params:oauth:grant_type:redelegate',
|
|
|
|
'redelegate': 'urn:ietf:params:oauth:grant_type:redelegate',
|
|
|
|
'refresh_token': 'refresh_token'
|
|
|
|
'refresh_token': 'refresh_token',
|
|
|
|
|
|
|
|
'device': 'urn:ietf:params:oauth:grant-type:device_code'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// maps from a form-friendly name to the real response type parameter name
|
|
|
|
// maps from a form-friendly name to the real response type parameter name
|
|
|
@ -865,6 +867,8 @@ var ClientFormView = Backbone.View.extend({
|
|
|
|
|
|
|
|
|
|
|
|
var idTokenValiditySeconds = this.getFormTokenNumberValue($('#idTokenValidityTime input[type=text]').val(), $('#idTokenValidityTime select').val());
|
|
|
|
var idTokenValiditySeconds = this.getFormTokenNumberValue($('#idTokenValidityTime input[type=text]').val(), $('#idTokenValidityTime select').val());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var deviceCodeValiditySeconds = this.getFormTokenNumberValue($('#deviceCodeValidityTime input[type=text]').val, $('#deviceCodeValidityTime select').val());
|
|
|
|
|
|
|
|
|
|
|
|
var refreshTokenValiditySeconds = null;
|
|
|
|
var refreshTokenValiditySeconds = null;
|
|
|
|
if ($('#allowRefresh').is(':checked')) {
|
|
|
|
if ($('#allowRefresh').is(':checked')) {
|
|
|
|
|
|
|
|
|
|
|
@ -928,6 +932,7 @@ var ClientFormView = Backbone.View.extend({
|
|
|
|
accessTokenValiditySeconds: accessTokenValiditySeconds,
|
|
|
|
accessTokenValiditySeconds: accessTokenValiditySeconds,
|
|
|
|
refreshTokenValiditySeconds: refreshTokenValiditySeconds,
|
|
|
|
refreshTokenValiditySeconds: refreshTokenValiditySeconds,
|
|
|
|
idTokenValiditySeconds: idTokenValiditySeconds,
|
|
|
|
idTokenValiditySeconds: idTokenValiditySeconds,
|
|
|
|
|
|
|
|
deviceCodeValiditySeconds: deviceCodeValiditySeconds,
|
|
|
|
allowRefresh: $('#allowRefresh').is(':checked'),
|
|
|
|
allowRefresh: $('#allowRefresh').is(':checked'),
|
|
|
|
allowIntrospection: $('#allowIntrospection input').is(':checked'), // <-- And here? --^
|
|
|
|
allowIntrospection: $('#allowIntrospection input').is(':checked'), // <-- And here? --^
|
|
|
|
scope: scopes,
|
|
|
|
scope: scopes,
|
|
|
@ -1235,6 +1240,7 @@ ui.routes.push({path: "admin/client/new", name: "newClient", callback:
|
|
|
|
accessTokenValiditySeconds:3600,
|
|
|
|
accessTokenValiditySeconds:3600,
|
|
|
|
refreshTokenValiditySeconds:24*3600,
|
|
|
|
refreshTokenValiditySeconds:24*3600,
|
|
|
|
idTokenValiditySeconds:300,
|
|
|
|
idTokenValiditySeconds:300,
|
|
|
|
|
|
|
|
deviceCodeValiditySeconds:30*60,
|
|
|
|
grantTypes: ["authorization_code"],
|
|
|
|
grantTypes: ["authorization_code"],
|
|
|
|
responseTypes: ["code"],
|
|
|
|
responseTypes: ["code"],
|
|
|
|
subjectType: "PUBLIC",
|
|
|
|
subjectType: "PUBLIC",
|
|
|
@ -1252,6 +1258,7 @@ ui.routes.push({path: "admin/client/new", name: "newClient", callback:
|
|
|
|
scope: _.uniq(_.flatten(app.systemScopeList.defaultScopes().pluck("value"))),
|
|
|
|
scope: _.uniq(_.flatten(app.systemScopeList.defaultScopes().pluck("value"))),
|
|
|
|
accessTokenValiditySeconds:3600,
|
|
|
|
accessTokenValiditySeconds:3600,
|
|
|
|
idTokenValiditySeconds:600,
|
|
|
|
idTokenValiditySeconds:600,
|
|
|
|
|
|
|
|
deviceCodeValiditySeconds:30*60,
|
|
|
|
grantTypes: ["authorization_code"],
|
|
|
|
grantTypes: ["authorization_code"],
|
|
|
|
responseTypes: ["code"],
|
|
|
|
responseTypes: ["code"],
|
|
|
|
subjectType: "PUBLIC",
|
|
|
|
subjectType: "PUBLIC",
|
|
|
|