fix saml admin console
This commit is contained in:
parent
8ae3551c4d
commit
5fa59262ce
1 changed files with 57 additions and 57 deletions
|
@ -799,23 +799,6 @@ module.controller('ClientDetailCtrl', function($scope, realm, client, $route, se
|
|||
} else if ($scope.client.attributes['saml_name_id_format'] == 'persistent') {
|
||||
$scope.nameIdFormat = $scope.nameIdFormats[3];
|
||||
}
|
||||
}
|
||||
|
||||
if (!$scope.create) {
|
||||
$scope.client = angular.copy(client);
|
||||
updateProperties();
|
||||
} else {
|
||||
$scope.client = { enabled: true, attributes: {}};
|
||||
$scope.client.attributes['saml_signature_canonicalization_method'] = $scope.canonicalization[0].value;
|
||||
$scope.client.redirectUris = [];
|
||||
$scope.accessType = $scope.accessTypes[0];
|
||||
$scope.protocol = $scope.protocols[0];
|
||||
$scope.signatureAlgorithm = $scope.signatureAlgorithms[1];
|
||||
$scope.nameIdFormat = $scope.nameIdFormats[0];
|
||||
$scope.samlAuthnStatement = true;
|
||||
$scope.samlForceNameIdFormat = false;
|
||||
}
|
||||
|
||||
if ($scope.client.attributes["saml.server.signature"]) {
|
||||
if ($scope.client.attributes["saml.server.signature"] == "true") {
|
||||
$scope.samlServerSignature = true;
|
||||
|
@ -873,6 +856,23 @@ module.controller('ClientDetailCtrl', function($scope, realm, client, $route, se
|
|||
$scope.samlForcePostBinding = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$scope.create) {
|
||||
$scope.client = angular.copy(client);
|
||||
updateProperties();
|
||||
} else {
|
||||
$scope.client = { enabled: true, attributes: {}};
|
||||
$scope.client.attributes['saml_signature_canonicalization_method'] = $scope.canonicalization[0].value;
|
||||
$scope.client.redirectUris = [];
|
||||
$scope.accessType = $scope.accessTypes[0];
|
||||
$scope.protocol = $scope.protocols[0];
|
||||
$scope.signatureAlgorithm = $scope.signatureAlgorithms[1];
|
||||
$scope.nameIdFormat = $scope.nameIdFormats[0];
|
||||
$scope.samlAuthnStatement = true;
|
||||
$scope.samlForceNameIdFormat = false;
|
||||
}
|
||||
|
||||
|
||||
$scope.importFile = function(fileContent){
|
||||
console.debug(fileContent);
|
||||
|
|
Loading…
Reference in a new issue