config optiosn
This commit is contained in:
parent
4d3299ae08
commit
f38c6d3412
9 changed files with 198 additions and 154 deletions
|
@ -35,7 +35,10 @@
|
||||||
"adminUrl": "http://localhost:8080/sales-post",
|
"adminUrl": "http://localhost:8080/sales-post",
|
||||||
"redirectUris": [
|
"redirectUris": [
|
||||||
"http://localhost:8080/sales-post/*"
|
"http://localhost:8080/sales-post/*"
|
||||||
]
|
],
|
||||||
|
"attributes": {
|
||||||
|
"saml.authnstatement": "true"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "http://localhost:8080/sales-post-sig/",
|
"name": "http://localhost:8080/sales-post-sig/",
|
||||||
|
@ -51,6 +54,7 @@
|
||||||
"saml.server.signature": "true",
|
"saml.server.signature": "true",
|
||||||
"saml.signature.algorithm": "RSA_SHA256",
|
"saml.signature.algorithm": "RSA_SHA256",
|
||||||
"saml.client.signature": "true",
|
"saml.client.signature": "true",
|
||||||
|
"saml.authnstatement": "true",
|
||||||
"privateKey": "MIICWwIBAAKBgQDVG8a7xGN6ZIkDbeecySygcDfsypjUMNPE4QJjis8B316CvsZQ0hcTTLUyiRpHlHZys2k3xEhHBHymFC1AONcvzZzpb40tAhLHO1qtAnut00khjAdjR3muLVdGkM/zMC7G5s9iIwBVhwOQhy+VsGnCH91EzkjZ4SVEr55KJoyQJQIDAQABAoGADaTtoG/+foOZUiLjRWKL/OmyavK9vjgyFtThNkZY4qHOh0h3og0RdSbgIxAsIpEa1FUwU2W5yvI6mNeJ3ibFgCgcxqPk6GkAC7DWfQfdQ8cS+dCuaFTs8ObIQEvU50YzeNPiiFxRA+MnauCUXaKm/PnDfjd4tPgru7XZvlGh0wECQQDsBbN2cKkBKpr/b5oJiBcBaSZtWiMNuYBDn9x8uORj+Gy/49BUIMHF2EWyxOWz6ocP5YiynNRkPe21Zus7PEr1AkEA5yWQOkxUTIg43s4pxNSeHtL+Ebqcg54lY2xOQK0yufxUVZI8ODctAKmVBMiCKpU3mZQquOaQicuGtocpgx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XWsw==",
|
||||||
"publicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVG8a7xGN6ZIkDbeecySygcDfsypjUMNPE4QJjis8B316CvsZQ0hcTTLUyiRpHlHZys2k3xEhHBHymFC1AONcvzZzpb40tAhLHO1qtAnut00khjAdjR3muLVdGkM/zMC7G5s9iIwBVhwOQhy+VsGnCH91EzkjZ4SVEr55KJoyQJQIDAQAB",
|
"publicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVG8a7xGN6ZIkDbeecySygcDfsypjUMNPE4QJjis8B316CvsZQ0hcTTLUyiRpHlHZys2k3xEhHBHymFC1AONcvzZzpb40tAhLHO1qtAnut00khjAdjR3muLVdGkM/zMC7G5s9iIwBVhwOQhy+VsGnCH91EzkjZ4SVEr55KJoyQJQIDAQAB",
|
||||||
"X509Certificate": "MIIB1DCCAT0CBgFJGP5dZDANBgkqhkiG9w0BAQsFADAwMS4wLAYDVQQDEyVodHRwOi8vbG9jYWxob3N0OjgwODAvc2FsZXMtcG9zdC1zaWcvMB4XDTE0MTAxNjEyNDQyM1oXDTI0MTAxNjEyNDYwM1owMDEuMCwGA1UEAxMlaHR0cDovL2xvY2FsaG9zdDo4MDgwL3NhbGVzLXBvc3Qtc2lnLzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1RvGu8RjemSJA23nnMksoHA37MqY1DDTxOECY4rPAd9egr7GUNIXE0y1MokaR5R2crNpN8RIRwR8phQtQDjXL82c6W+NLQISxztarQJ7rdNJIYwHY0d5ri1XRpDP8zAuxubPYiMAVYcDkIcvlbBpwh/dRM5I2eElRK+eSiaMkCUCAwEAATANBgkqhkiG9w0BAQsFAAOBgQCLms6htnPaY69k1ntm9a5jgwSn/K61cdai8R8B0ccY7zvinn9AfRD7fiROQpFyY29wKn8WCLrJ86NBXfgFUGyR5nLNHVy3FghE36N2oHy53uichieMxffE6vhkKJ4P8ChfJMMOZlmCPsQPDvjoAghHt4mriFiQgRdPgIy/zDjSNw=="
|
"X509Certificate": "MIIB1DCCAT0CBgFJGP5dZDANBgkqhkiG9w0BAQsFADAwMS4wLAYDVQQDEyVodHRwOi8vbG9jYWxob3N0OjgwODAvc2FsZXMtcG9zdC1zaWcvMB4XDTE0MTAxNjEyNDQyM1oXDTI0MTAxNjEyNDYwM1owMDEuMCwGA1UEAxMlaHR0cDovL2xvY2FsaG9zdDo4MDgwL3NhbGVzLXBvc3Qtc2lnLzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1RvGu8RjemSJA23nnMksoHA37MqY1DDTxOECY4rPAd9egr7GUNIXE0y1MokaR5R2crNpN8RIRwR8phQtQDjXL82c6W+NLQISxztarQJ7rdNJIYwHY0d5ri1XRpDP8zAuxubPYiMAVYcDkIcvlbBpwh/dRM5I2eElRK+eSiaMkCUCAwEAATANBgkqhkiG9w0BAQsFAAOBgQCLms6htnPaY69k1ntm9a5jgwSn/K61cdai8R8B0ccY7zvinn9AfRD7fiROQpFyY29wKn8WCLrJ86NBXfgFUGyR5nLNHVy3FghE36N2oHy53uichieMxffE6vhkKJ4P8ChfJMMOZlmCPsQPDvjoAghHt4mriFiQgRdPgIy/zDjSNw=="
|
||||||
|
@ -71,6 +75,7 @@
|
||||||
"saml.signature.algorithm": "RSA_SHA512",
|
"saml.signature.algorithm": "RSA_SHA512",
|
||||||
"saml.client.signature": "true",
|
"saml.client.signature": "true",
|
||||||
"saml.encrypt": "true",
|
"saml.encrypt": "true",
|
||||||
|
"saml.authnstatement": "true",
|
||||||
"privateKey": "MIICXQIBAAKBgQDb7kwJPkGdU34hicplwfp6/WmNcaLh94TSc7Jyr9Undp5pkyLgb0DE7EIE+6kSs4LsqCb8HDkB0nLD5DXbBJFd8n0WGoKstelvtg6FtVJMnwN7k7yZbfkPECWH9zF70VeOo9vbzrApNRnct8ZhH5fbflRB4JMA9L9R+LbURdoSKQIDAQABAoGBANtbZG9bruoSGp2s5zhzLzd4hczT6Jfk3o9hYj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"adminUrl": "http://localhost:8080/employee",
|
||||||
"redirectUris": [
|
"redirectUris": [
|
||||||
"http://localhost:8080/employee/*"
|
"http://localhost:8080/employee/*"
|
||||||
]
|
],
|
||||||
|
"attributes": {
|
||||||
|
"saml.authnstatement": "true"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "http://localhost:8080/employee-sig/",
|
"name": "http://localhost:8080/employee-sig/",
|
||||||
|
@ -101,6 +109,7 @@
|
||||||
"saml.server.signature": "true",
|
"saml.server.signature": "true",
|
||||||
"saml.client.signature": "true",
|
"saml.client.signature": "true",
|
||||||
"saml.signature.algorithm": "RSA_SHA1",
|
"saml.signature.algorithm": "RSA_SHA1",
|
||||||
|
"saml.authnstatement": "true",
|
||||||
"privateKey": "MIICXQIBAAKBgQC+9kVgPFpshjS2aT2g52lqTv2lqb1jgvXZVk7iFF4LAO6SdCXKXRZI4SuzIRkVNpE1a42V1kQRlaozoFklgvX5sje8tkpa9ylq+bxGXM9RRycqRu2B+oWUV7Aqq7Bs0Xud0WeHQYRcEoCjqsFKGy65qkLRDdT70FTJgpSHts+gDwIDAQABAoGANU1efgc6ojIvwn7Lsf8GAKN9z2D6uS0T3I9nw1k2CtI+xWhgKAUltEANx5lEfBRYIdYclidRpqrk8DYgzASrDYTHXzqVBJfAk1VrAGpqyRq+TNMLUHkXiTiSDOQ6WqhX93UGMmAgQm1RsLa6+fy1BO/B2y85+Yf2OUylsKS6avECQQDslRDiNFdtEjdvyOL20tQ7+W+eKVxVxKAyQ3gFjIIDizELZt+Jq1Wz6XV9NhK1JFtlVugeD1tlW/+K16fEmDYXAkEAzqKoN/JeGb20rfQldAUWdQbb0jrQAYlgoSU/9fYH9YVJT8vnkfhPBTwIw9H9euf1//lRP/jHltHd5ch4230YyQJBAN3rOkoltPiABPZbpuLGgwS7BwOCYrWlWmurtBLoaTCvyVKbrgXybNL1pBrOtR+rufvGWLeRyja65Gs1vY6BBQMCQQCTsNq/MjJj/522f7yNUl2c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wwKgYDVQQDEyNodHRwOi8vbG9jYWxob3N0OjgwODAvZW1wbG95ZWUtc2lnLzAeFw0xNDEwMTcxOTMzNThaFw0yNDEwMTcxOTM1MzhaMC4xLDAqBgNVBAMTI2h0dHA6Ly9sb2NhbGhvc3Q6ODA4MC9lbXBsb3llZS1zaWcvMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+9kVgPFpshjS2aT2g52lqTv2lqb1jgvXZVk7iFF4LAO6SdCXKXRZI4SuzIRkVNpE1a42V1kQRlaozoFklgvX5sje8tkpa9ylq+bxGXM9RRycqRu2B+oWUV7Aqq7Bs0Xud0WeHQYRcEoCjqsFKGy65qkLRDdT70FTJgpSHts+gDwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBACKyPLGqMX8GsIrCfJU8eVnpaqzTXMglLVo/nTcfAnWe9UAdVe8N3a2PXpDBvuqNA/DEAhVcQgxdlOTWnB6s8/yLTRuH0bZgb3qGdySif+lU+E7zZ/SiDzavAvn+ABqemnzHcHyhYO+hNRGHvUbW5OAii9Vdjhm8BI32YF1NwhKp"
|
||||||
|
|
|
@ -357,7 +357,10 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
|
||||||
|
|
||||||
$scope.realm = realm;
|
$scope.realm = realm;
|
||||||
$scope.create = !application.name;
|
$scope.create = !application.name;
|
||||||
|
$scope.samlAuthnStatement = false;
|
||||||
|
$scope.samlMultiValuedRoles = false;
|
||||||
$scope.samlServerSignature = false;
|
$scope.samlServerSignature = false;
|
||||||
|
$scope.samlAssertionSignature = false;
|
||||||
$scope.samlClientSignature = false;
|
$scope.samlClientSignature = false;
|
||||||
$scope.samlEncrypt = false;
|
$scope.samlEncrypt = false;
|
||||||
if (!$scope.create) {
|
if (!$scope.create) {
|
||||||
|
@ -393,21 +396,50 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
|
||||||
$scope.accessType = $scope.accessTypes[0];
|
$scope.accessType = $scope.accessTypes[0];
|
||||||
$scope.protocol = $scope.protocols[0];
|
$scope.protocol = $scope.protocols[0];
|
||||||
$scope.signatureAlgorithm = $scope.signatureAlgorithms[1];
|
$scope.signatureAlgorithm = $scope.signatureAlgorithms[1];
|
||||||
|
$scope.samlAuthnStatement = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($scope.application.attributes["saml.server.signature"]) {
|
if ($scope.application.attributes["saml.server.signature"]) {
|
||||||
if ($scope.application.attributes["saml.server.signature"] == "true") {
|
if ($scope.application.attributes["saml.server.signature"] == "true") {
|
||||||
$scope.samlServerSignature = true;
|
$scope.samlServerSignature = true;
|
||||||
|
} else {
|
||||||
|
$scope.samlServerSignature = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($scope.application.attributes["saml.assertion.signature"]) {
|
||||||
|
if ($scope.application.attributes["saml.assertion.signature"] == "true") {
|
||||||
|
$scope.samlAssertionSignature = true;
|
||||||
|
} else {
|
||||||
|
$scope.samlAssertionSignature = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($scope.application.attributes["saml.client.signature"]) {
|
if ($scope.application.attributes["saml.client.signature"]) {
|
||||||
if ($scope.application.attributes["saml.client.signature"] == "true") {
|
if ($scope.application.attributes["saml.client.signature"] == "true") {
|
||||||
$scope.samlClientSignature = true;
|
$scope.samlClientSignature = true;
|
||||||
|
} else {
|
||||||
|
$scope.samlClientSignature = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($scope.application.attributes["saml.encrypt"]) {
|
if ($scope.application.attributes["saml.encrypt"]) {
|
||||||
if ($scope.application.attributes["saml.encrypt"] == "true") {
|
if ($scope.application.attributes["saml.encrypt"] == "true") {
|
||||||
$scope.samlEncrypt = true;
|
$scope.samlEncrypt = true;
|
||||||
|
} else {
|
||||||
|
$scope.samlEncrypt = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($scope.application.attributes["saml.authnstatement"]) {
|
||||||
|
if ($scope.application.attributes["saml.authnstatement"] == "true") {
|
||||||
|
$scope.samlAuthnStatement = true;
|
||||||
|
} else {
|
||||||
|
$scope.samlAuthnStatement = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($scope.application.attributes["saml.multivalued.roles"]) {
|
||||||
|
if ($scope.application.attributes["saml.multivalued.roles"] == "true") {
|
||||||
|
$scope.samlMultiValuedRoles = true;
|
||||||
|
} else {
|
||||||
|
$scope.samlMultiValuedRoles = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -474,6 +506,11 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
|
||||||
$scope.application.attributes["saml.server.signature"] = "false";
|
$scope.application.attributes["saml.server.signature"] = "false";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if ($scope.samlAssertionSignature == true) {
|
||||||
|
$scope.application.attributes["saml.assertion.signature"] = "true";
|
||||||
|
} else {
|
||||||
|
$scope.application.attributes["saml.assertion.signature"] = "false";
|
||||||
|
}
|
||||||
if ($scope.samlClientSignature == true) {
|
if ($scope.samlClientSignature == true) {
|
||||||
$scope.application.attributes["saml.client.signature"] = "true";
|
$scope.application.attributes["saml.client.signature"] = "true";
|
||||||
} else {
|
} else {
|
||||||
|
@ -485,6 +522,18 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
|
||||||
} else {
|
} else {
|
||||||
$scope.application.attributes["saml.encrypt"] = "false";
|
$scope.application.attributes["saml.encrypt"] = "false";
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($scope.samlAuthnStatement == true) {
|
||||||
|
$scope.application.attributes["saml.authnstatement"] = "true";
|
||||||
|
} else {
|
||||||
|
$scope.application.attributes["saml.authnstatement"] = "false";
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($scope.samlMultiValuedRoles == true) {
|
||||||
|
$scope.application.attributes["saml.multivalued.roles"] = "true";
|
||||||
|
} else {
|
||||||
|
$scope.application.attributes["saml.multivalued.roles"] = "false";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.application.protocol = $scope.protocol;
|
$scope.application.protocol = $scope.protocol;
|
||||||
|
|
|
@ -57,13 +57,34 @@
|
||||||
<span tooltip-placement="right" tooltip="'Confidential' applications require a secret to initiate login protocol. 'Public' clients do not require a secret. 'Bearer-only' applications are web services that never initiate a login." class="fa fa-info-circle"></span>
|
<span tooltip-placement="right" tooltip="'Confidential' applications require a secret to initiate login protocol. 'Public' clients do not require a secret. 'Bearer-only' applications are web services that never initiate a login." class="fa fa-info-circle"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group clearfix block" data-ng-show="protocol == 'saml'">
|
<div class="form-group clearfix block" data-ng-show="protocol == 'saml'">
|
||||||
<label class="col-sm-2 control-label" for="samlServerSignature">Sign SAML Documents</label>
|
<label class="col-sm-2 control-label" for="samlServerSignature">Include AuthnStatement</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<input ng-model="samlAuthnStatement" ng-click="switchChange()" name="samlAuthnStatement" id="samlAuthnStatement" onoffswitch />
|
||||||
|
</div>
|
||||||
|
<span tooltip-placement="right" tooltip="Should a statement specifying the method and timestamp be included in login responses?" class="fa fa-info-circle"></span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group clearfix block" data-ng-show="protocol == 'saml'">
|
||||||
|
<label class="col-sm-2 control-label" for="samlMultiValuedRoles">Multi-valued Roles</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<input ng-model="samlMultiValuedRoles" ng-click="switchChange()" name="samlMultiValuedRoles" id="samlMultiValuedRoles" onoffswitch />
|
||||||
|
</div>
|
||||||
|
<span tooltip-placement="right" tooltip="'On' means that there will be one role attribute with multiple values for each role in SAML response. 'Off' means that there will be an attribute defined for each role." class="fa fa-info-circle"></span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group clearfix block" data-ng-show="protocol == 'saml'">
|
||||||
|
<label class="col-sm-2 control-label" for="samlServerSignature">Sign Documents</label>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input ng-model="samlServerSignature" ng-click="switchChange()" name="samlServerSignature" id="samlServerSignature" onoffswitch />
|
<input ng-model="samlServerSignature" ng-click="switchChange()" name="samlServerSignature" id="samlServerSignature" onoffswitch />
|
||||||
</div>
|
</div>
|
||||||
<span tooltip-placement="right" tooltip="Should SAML documents be signed by the realm?" class="fa fa-info-circle"></span>
|
<span tooltip-placement="right" tooltip="Should SAML documents be signed by the realm?" class="fa fa-info-circle"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group" data-ng-show="samlServerSignature && protocol == 'saml'">
|
<div class="form-group clearfix block" data-ng-show="protocol == 'saml'">
|
||||||
|
<label class="col-sm-2 control-label" for="samlAssertionSignature">Sign Assertions</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<input ng-model="samlAssertionSignature" ng-click="switchChange()" name="samlAssertionSignature" id="samlAssertionSignature" onoffswitch />
|
||||||
|
</div>
|
||||||
|
<span tooltip-placement="right" tooltip="Should assertions inside SAML documents be signed? This setting isn't needed if document is already being signed." class="fa fa-info-circle"></span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group" data-ng-show="(samlAssertionSignature || samlServerSignature) && protocol == 'saml'">
|
||||||
<label class="col-sm-2 control-label" for="protocol">Signature Algorithm</label>
|
<label class="col-sm-2 control-label" for="protocol">Signature Algorithm</label>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<div class="select-kc">
|
<div class="select-kc">
|
||||||
|
@ -77,11 +98,11 @@
|
||||||
<span tooltip-placement="right" tooltip="The signature algorithm to use to sign documents." class="fa fa-info-circle"></span>
|
<span tooltip-placement="right" tooltip="The signature algorithm to use to sign documents." class="fa fa-info-circle"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group clearfix block" data-ng-show="protocol == 'saml'">
|
<div class="form-group clearfix block" data-ng-show="protocol == 'saml'">
|
||||||
<label class="col-sm-2 control-label" for="samlEncrypt">Encrypt SAML Documents</label>
|
<label class="col-sm-2 control-label" for="samlEncrypt">Encrypt Assertions</label>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input ng-model="samlEncrypt" ng-click="switchChange()" name="samlEncrypt" id="samlEncrypt" onoffswitch />
|
<input ng-model="samlEncrypt" ng-click="switchChange()" name="samlEncrypt" id="samlEncrypt" onoffswitch />
|
||||||
</div>
|
</div>
|
||||||
<span tooltip-placement="right" tooltip="Should SAML asserts be encrypted with client's public key?" class="fa fa-info-circle"></span>
|
<span tooltip-placement="right" tooltip="Should SAML assertions be encrypted with client's public key using AES?" class="fa fa-info-circle"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group clearfix block" data-ng-show="protocol == 'saml'">
|
<div class="form-group clearfix block" data-ng-show="protocol == 'saml'">
|
||||||
<label class="col-sm-2 control-label" for="samlClientSignature">Client Signature Required</label>
|
<label class="col-sm-2 control-label" for="samlClientSignature">Client Signature Required</label>
|
||||||
|
|
|
@ -143,7 +143,7 @@ public class SALM2LoginResponseBuilder extends SAML2BindingBuilder<SALM2LoginRes
|
||||||
|
|
||||||
// Create an AuthnStatementType
|
// Create an AuthnStatementType
|
||||||
if (!disableAuthnStatement) {
|
if (!disableAuthnStatement) {
|
||||||
String authContextRef = JBossSAMLURIConstants.AC_PASSWORD.get();
|
String authContextRef = JBossSAMLURIConstants.AC_UNSPECIFIED.get();
|
||||||
if (isNotNull(authMethod))
|
if (isNotNull(authMethod))
|
||||||
authContextRef = authMethod;
|
authContextRef = authMethod;
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,13 @@ import org.picketlink.common.constants.JBossSAMLURIConstants;
|
||||||
import org.picketlink.common.exceptions.ConfigurationException;
|
import org.picketlink.common.exceptions.ConfigurationException;
|
||||||
import org.picketlink.common.exceptions.ProcessingException;
|
import org.picketlink.common.exceptions.ProcessingException;
|
||||||
import org.picketlink.common.util.DocumentUtil;
|
import org.picketlink.common.util.DocumentUtil;
|
||||||
|
import org.picketlink.identity.federation.api.saml.v2.sig.SAML2Signature;
|
||||||
import org.picketlink.identity.federation.core.util.XMLEncryptionUtil;
|
import org.picketlink.identity.federation.core.util.XMLEncryptionUtil;
|
||||||
import org.picketlink.identity.federation.core.wstrust.WSTrustUtil;
|
import org.picketlink.identity.federation.core.wstrust.WSTrustUtil;
|
||||||
import org.picketlink.identity.federation.web.util.PostBindingUtil;
|
import org.picketlink.identity.federation.web.util.PostBindingUtil;
|
||||||
import org.picketlink.identity.federation.web.util.RedirectBindingUtil;
|
import org.picketlink.identity.federation.web.util.RedirectBindingUtil;
|
||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
|
import org.w3c.dom.Element;
|
||||||
import org.w3c.dom.Node;
|
import org.w3c.dom.Node;
|
||||||
|
|
||||||
import javax.crypto.SecretKey;
|
import javax.crypto.SecretKey;
|
||||||
|
@ -37,7 +39,8 @@ import static org.picketlink.common.util.StringUtil.isNotNull;
|
||||||
public class SAML2BindingBuilder<T extends SAML2BindingBuilder> {
|
public class SAML2BindingBuilder<T extends SAML2BindingBuilder> {
|
||||||
protected KeyPair signingKeyPair;
|
protected KeyPair signingKeyPair;
|
||||||
protected X509Certificate signingCertificate;
|
protected X509Certificate signingCertificate;
|
||||||
protected boolean signed;
|
protected boolean sign;
|
||||||
|
protected boolean signAssertions;
|
||||||
protected SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.RSA_SHA1;
|
protected SignatureAlgorithm signatureAlgorithm = SignatureAlgorithm.RSA_SHA1;
|
||||||
protected String relayState;
|
protected String relayState;
|
||||||
protected String destination;
|
protected String destination;
|
||||||
|
@ -47,29 +50,35 @@ public class SAML2BindingBuilder<T extends SAML2BindingBuilder> {
|
||||||
protected String encryptionAlgorithm = "AES";
|
protected String encryptionAlgorithm = "AES";
|
||||||
protected boolean encrypt;
|
protected boolean encrypt;
|
||||||
|
|
||||||
public T sign(KeyPair keyPair) {
|
public T signDocument() {
|
||||||
|
this.sign = true;
|
||||||
|
return (T)this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public T signAssertions() {
|
||||||
|
this.signAssertions = true;
|
||||||
|
return (T)this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public T signWith(KeyPair keyPair) {
|
||||||
this.signingKeyPair = keyPair;
|
this.signingKeyPair = keyPair;
|
||||||
this.signed = true;
|
|
||||||
return (T)this;
|
return (T)this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public T sign(PrivateKey privateKey, PublicKey publicKey) {
|
public T signWith(PrivateKey privateKey, PublicKey publicKey) {
|
||||||
this.signingKeyPair = new KeyPair(publicKey, privateKey);
|
this.signingKeyPair = new KeyPair(publicKey, privateKey);
|
||||||
this.signed = true;
|
|
||||||
return (T)this;
|
return (T)this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public T sign(KeyPair keyPair, X509Certificate cert) {
|
public T signWith(KeyPair keyPair, X509Certificate cert) {
|
||||||
this.signingKeyPair = keyPair;
|
this.signingKeyPair = keyPair;
|
||||||
this.signingCertificate = cert;
|
this.signingCertificate = cert;
|
||||||
this.signed = true;
|
|
||||||
return (T)this;
|
return (T)this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public T sign(PrivateKey privateKey, PublicKey publicKey, X509Certificate cert) {
|
public T signWith(PrivateKey privateKey, PublicKey publicKey, X509Certificate cert) {
|
||||||
this.signingKeyPair = new KeyPair(publicKey, privateKey);
|
this.signingKeyPair = new KeyPair(publicKey, privateKey);
|
||||||
this.signingCertificate = cert;
|
this.signingCertificate = cert;
|
||||||
this.signed = true;
|
|
||||||
return (T)this;
|
return (T)this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +123,10 @@ public class SAML2BindingBuilder<T extends SAML2BindingBuilder> {
|
||||||
|
|
||||||
public PostBindingBuilder(Document document) throws ProcessingException {
|
public PostBindingBuilder(Document document) throws ProcessingException {
|
||||||
this.document = document;
|
this.document = document;
|
||||||
if (signed) {
|
if (signAssertions) {
|
||||||
|
signAssertion(document);
|
||||||
|
}
|
||||||
|
if (sign) {
|
||||||
signDocument(document);
|
signDocument(document);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,8 +152,11 @@ public class SAML2BindingBuilder<T extends SAML2BindingBuilder> {
|
||||||
public class RedirectBindingBuilder {
|
public class RedirectBindingBuilder {
|
||||||
protected Document document;
|
protected Document document;
|
||||||
|
|
||||||
public RedirectBindingBuilder(Document document) {
|
public RedirectBindingBuilder(Document document) throws ProcessingException {
|
||||||
this.document = document;
|
this.document = document;
|
||||||
|
if (signAssertions) {
|
||||||
|
signAssertion(document);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Document getDocument() {
|
public Document getDocument() {
|
||||||
|
@ -196,9 +211,54 @@ public class SAML2BindingBuilder<T extends SAML2BindingBuilder> {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void signDocument(Document samlDocument) throws ProcessingException {
|
protected void signDocument(Document samlDocument) throws ProcessingException {
|
||||||
SamlProtocolUtils.signDocument(samlDocument, signingKeyPair, signatureAlgorithm.getXmlSignatureMethod(), signatureAlgorithm.getXmlSignatureDigestMethod(), signingCertificate);
|
String signatureMethod = signatureAlgorithm.getXmlSignatureMethod();
|
||||||
|
String signatureDigestMethod = signatureAlgorithm.getXmlSignatureDigestMethod();
|
||||||
|
SAML2Signature samlSignature = new SAML2Signature();
|
||||||
|
|
||||||
|
if (signatureMethod != null) {
|
||||||
|
samlSignature.setSignatureMethod(signatureMethod);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (signatureDigestMethod != null) {
|
||||||
|
samlSignature.setDigestMethod(signatureDigestMethod);
|
||||||
|
}
|
||||||
|
|
||||||
|
Node nextSibling = samlSignature.getNextSiblingOfIssuer(samlDocument);
|
||||||
|
|
||||||
|
samlSignature.setNextSibling(nextSibling);
|
||||||
|
|
||||||
|
if (signingCertificate != null) {
|
||||||
|
samlSignature.setX509Certificate(signingCertificate);
|
||||||
|
}
|
||||||
|
|
||||||
|
samlSignature.signSAMLDocument(samlDocument, signingKeyPair);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void signAssertion(Document samlDocument) throws ProcessingException {
|
||||||
|
Element originalAssertionElement = DocumentUtil.getChildElement(samlDocument.getDocumentElement(), new QName(JBossSAMLURIConstants.ASSERTION_NSURI.get(), JBossSAMLConstants.ASSERTION.get()));
|
||||||
|
if (originalAssertionElement == null) return;
|
||||||
|
Node clonedAssertionElement = originalAssertionElement.cloneNode(true);
|
||||||
|
Document temporaryDocument;
|
||||||
|
|
||||||
|
try {
|
||||||
|
temporaryDocument = DocumentUtil.createDocument();
|
||||||
|
} catch (ConfigurationException e) {
|
||||||
|
throw new ProcessingException(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
temporaryDocument.adoptNode(clonedAssertionElement);
|
||||||
|
temporaryDocument.appendChild(clonedAssertionElement);
|
||||||
|
|
||||||
|
signDocument(temporaryDocument);
|
||||||
|
|
||||||
|
samlDocument.adoptNode(clonedAssertionElement);
|
||||||
|
|
||||||
|
Element parentNode = (Element) originalAssertionElement.getParentNode();
|
||||||
|
|
||||||
|
parentNode.replaceChild(clonedAssertionElement, originalAssertionElement);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected Response buildResponse(Document responseDoc) throws ProcessingException, ConfigurationException, IOException {
|
protected Response buildResponse(Document responseDoc) throws ProcessingException, ConfigurationException, IOException {
|
||||||
String str = buildHtmlPostResponse(responseDoc);
|
String str = buildHtmlPostResponse(responseDoc);
|
||||||
|
|
||||||
|
@ -263,7 +323,7 @@ public class SAML2BindingBuilder<T extends SAML2BindingBuilder> {
|
||||||
builder.queryParam("RelayState", relayState);
|
builder.queryParam("RelayState", relayState);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signed) {
|
if (sign) {
|
||||||
builder.queryParam(GeneralConstants.SAML_SIG_ALG_REQUEST_KEY, signatureAlgorithm.getJavaSignatureAlgorithm());
|
builder.queryParam(GeneralConstants.SAML_SIG_ALG_REQUEST_KEY, signatureAlgorithm.getJavaSignatureAlgorithm());
|
||||||
URI uri = builder.build();
|
URI uri = builder.build();
|
||||||
String rawQuery = uri.getRawQuery();
|
String rawQuery = uri.getRawQuery();
|
||||||
|
|
|
@ -104,6 +104,7 @@ public class SamlProtocol implements LoginProtocol {
|
||||||
@Override
|
@Override
|
||||||
public Response authenticated(UserSessionModel userSession, ClientSessionCode accessCode) {
|
public Response authenticated(UserSessionModel userSession, ClientSessionCode accessCode) {
|
||||||
ClientSessionModel clientSession = accessCode.getClientSession();
|
ClientSessionModel clientSession = accessCode.getClientSession();
|
||||||
|
ClientModel client = clientSession.getClient();
|
||||||
String requestID = clientSession.getNote("REQUEST_ID");
|
String requestID = clientSession.getNote("REQUEST_ID");
|
||||||
String relayState = clientSession.getNote(GeneralConstants.RELAY_STATE);
|
String relayState = clientSession.getNote(GeneralConstants.RELAY_STATE);
|
||||||
String redirectUri = clientSession.getRedirectUri();
|
String redirectUri = clientSession.getRedirectUri();
|
||||||
|
@ -120,16 +121,27 @@ public class SamlProtocol implements LoginProtocol {
|
||||||
.authMethod(JBossSAMLURIConstants.AC_UNSPECIFIED.get());
|
.authMethod(JBossSAMLURIConstants.AC_UNSPECIFIED.get());
|
||||||
initClaims(builder, clientSession.getClient(), userSession.getUser());
|
initClaims(builder, clientSession.getClient(), userSession.getUser());
|
||||||
if (clientSession.getRoles() != null) {
|
if (clientSession.getRoles() != null) {
|
||||||
|
if (multivaluedRoles(client)) {
|
||||||
|
builder.multiValuedRoles(true);
|
||||||
|
}
|
||||||
for (String roleId : clientSession.getRoles()) {
|
for (String roleId : clientSession.getRoles()) {
|
||||||
// todo need a role mapping
|
// todo need a role mapping
|
||||||
RoleModel roleModel = clientSession.getRealm().getRoleById(roleId);
|
RoleModel roleModel = clientSession.getRealm().getRoleById(roleId);
|
||||||
builder.roles(roleModel.getName());
|
builder.roles(roleModel.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ClientModel client = clientSession.getClient();
|
|
||||||
if (requiresRealmSignature(client)) {
|
if (requiresRealmSignature(client)) {
|
||||||
builder.signatureAlgorithm(getSignatureAlgorithm(client));
|
builder.signatureAlgorithm(getSignatureAlgorithm(client))
|
||||||
builder.sign(realm.getPrivateKey(), realm.getPublicKey());
|
.signWith(realm.getPrivateKey(), realm.getPublicKey())
|
||||||
|
.signDocument();
|
||||||
|
}
|
||||||
|
if (requiresAssertionSignature(client)) {
|
||||||
|
builder.signatureAlgorithm(getSignatureAlgorithm(client))
|
||||||
|
.signWith(realm.getPrivateKey(), realm.getPublicKey())
|
||||||
|
.signAssertions();
|
||||||
|
}
|
||||||
|
if (!includeAuthnStatement(client)) {
|
||||||
|
builder.disableAuthnStatement(true);
|
||||||
}
|
}
|
||||||
if (requiresEncryption(client)) {
|
if (requiresEncryption(client)) {
|
||||||
PublicKey publicKey = null;
|
PublicKey publicKey = null;
|
||||||
|
@ -157,6 +169,18 @@ public class SamlProtocol implements LoginProtocol {
|
||||||
return "true".equals(client.getAttribute("saml.server.signature"));
|
return "true".equals(client.getAttribute("saml.server.signature"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean requiresAssertionSignature(ClientModel client) {
|
||||||
|
return "true".equals(client.getAttribute("saml.assertion.signature"));
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean includeAuthnStatement(ClientModel client) {
|
||||||
|
return "true".equals(client.getAttribute("saml.authnstatement"));
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean multivaluedRoles(ClientModel client) {
|
||||||
|
return "true".equals(client.getAttribute("saml.multivalued.roles"));
|
||||||
|
}
|
||||||
|
|
||||||
public static SignatureAlgorithm getSignatureAlgorithm(ClientModel client) {
|
public static SignatureAlgorithm getSignatureAlgorithm(ClientModel client) {
|
||||||
String alg = client.getAttribute("saml.signature.algorithm");
|
String alg = client.getAttribute("saml.signature.algorithm");
|
||||||
if (alg != null) {
|
if (alg != null) {
|
||||||
|
@ -197,8 +221,9 @@ public class SamlProtocol implements LoginProtocol {
|
||||||
.userPrincipal(userSession.getUser().getUsername())
|
.userPrincipal(userSession.getUser().getUsername())
|
||||||
.destination(client.getClientId());
|
.destination(client.getClientId());
|
||||||
if (requiresRealmSignature(client)) {
|
if (requiresRealmSignature(client)) {
|
||||||
logoutBuilder.signatureAlgorithm(getSignatureAlgorithm(client));
|
logoutBuilder.signatureAlgorithm(getSignatureAlgorithm(client))
|
||||||
logoutBuilder.sign(realm.getPrivateKey(), realm.getPublicKey());
|
.signWith(realm.getPrivateKey(), realm.getPublicKey())
|
||||||
|
.signDocument();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
if (requiresEncryption(client)) {
|
if (requiresEncryption(client)) {
|
||||||
|
|
|
@ -45,27 +45,5 @@ public class SamlProtocolUtils {
|
||||||
return publicKey;
|
return publicKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void signDocument(Document samlDocument, KeyPair signingKeyPair, String signatureMethod, String signatureDigestMethod, X509Certificate signingCertificate) throws ProcessingException {
|
|
||||||
SAML2Signature samlSignature = new SAML2Signature();
|
|
||||||
|
|
||||||
if (signatureMethod != null) {
|
|
||||||
samlSignature.setSignatureMethod(signatureMethod);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (signatureDigestMethod != null) {
|
|
||||||
samlSignature.setDigestMethod(signatureDigestMethod);
|
|
||||||
}
|
|
||||||
|
|
||||||
Node nextSibling = samlSignature.getNextSiblingOfIssuer(samlDocument);
|
|
||||||
|
|
||||||
samlSignature.setNextSibling(nextSibling);
|
|
||||||
|
|
||||||
if (signingCertificate != null) {
|
|
||||||
samlSignature.setX509Certificate(signingCertificate);
|
|
||||||
}
|
|
||||||
|
|
||||||
samlSignature.signSAMLDocument(samlDocument, signingKeyPair);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,10 @@
|
||||||
"adminUrl": "http://localhost:8081/sales-post",
|
"adminUrl": "http://localhost:8081/sales-post",
|
||||||
"redirectUris": [
|
"redirectUris": [
|
||||||
"http://localhost:8081/sales-post/*"
|
"http://localhost:8081/sales-post/*"
|
||||||
]
|
],
|
||||||
|
"attributes": {
|
||||||
|
"saml.authnstatement": "true"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "http://localhost:8081/sales-post-sig/",
|
"name": "http://localhost:8081/sales-post-sig/",
|
||||||
|
@ -53,6 +56,7 @@
|
||||||
"saml.server.signature": "true",
|
"saml.server.signature": "true",
|
||||||
"saml.signature.algorithm": "RSA_SHA256",
|
"saml.signature.algorithm": "RSA_SHA256",
|
||||||
"saml.client.signature": "true",
|
"saml.client.signature": "true",
|
||||||
|
"saml.authnstatement": "true",
|
||||||
"privateKey": "MIICWwIBAAKBgQDVG8a7xGN6ZIkDbeecySygcDfsypjUMNPE4QJjis8B316CvsZQ0hcTTLUyiRpHlHZys2k3xEhHBHymFC1AONcvzZzpb40tAhLHO1qtAnut00khjAdjR3muLVdGkM/zMC7G5s9iIwBVhwOQhy+VsGnCH91EzkjZ4SVEr55KJoyQJQIDAQABAoGADaTtoG/+foOZUiLjRWKL/OmyavK9vjgyFtThNkZY4qHOh0h3og0RdSbgIxAsIpEa1FUwU2W5yvI6mNeJ3ibFgCgcxqPk6GkAC7DWfQfdQ8cS+dCuaFTs8ObIQEvU50YzeNPiiFxRA+MnauCUXaKm/PnDfjd4tPgru7XZvlGh0wECQQDsBbN2cKkBKpr/b5oJiBcBaSZtWiMNuYBDn9x8uORj+Gy/49BUIMHF2EWyxOWz6ocP5YiynNRkPe21Zus7PEr1AkEA5yWQOkxUTIg43s4pxNSeHtL+Ebqcg54lY2xOQK0yufxUVZI8ODctAKmVBMiCKpU3mZQquOaQicuGtocpgxlScQI/YM31zZ5nsxLGf/5GL6KhzPJT0IYn2nk7IoFu7bjn9BjwgcPurpLA52TNMYWQsTqAKwT6DEhG1NaRqNWNpb4VAkBehObAYBwMm5udyHIeEc+CzUalm0iLLa0eRdiN7AUVNpCJ2V2Uo0NcxPux1AgeP5xXydXafDXYkwhINWcNO9qRAkEA58ckAC5loUGwU5dLaugsGH/a2Q8Ac8bm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Y2FsaG9zdDo4MDgwL3NhbGVzLXBvc3Qtc2lnLzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1RvGu8RjemSJA23nnMksoHA37MqY1DDTxOECY4rPAd9egr7GUNIXE0y1MokaR5R2crNpN8RIRwR8phQtQDjXL82c6W+NLQISxztarQJ7rdNJIYwHY0d5ri1XRpDP8zAuxubPYiMAVYcDkIcvlbBpwh/dRM5I2eElRK+eSiaMkCUCAwEAATANBgkqhkiG9w0BAQsFAAOBgQCLms6htnPaY69k1ntm9a5jgwSn/K61cdai8R8B0ccY7zvinn9AfRD7fiROQpFyY29wKn8WCLrJ86NBXfgFUGyR5nLNHVy3FghE36N2oHy53uichieMxffE6vhkKJ4P8ChfJMMOZlmCPsQPDvjoAghHt4mriFiQgRdPgIy/zDjSNw=="
|
||||||
|
@ -71,6 +75,7 @@
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"saml.server.signature": "true",
|
"saml.server.signature": "true",
|
||||||
"saml.client.signature": "true",
|
"saml.client.signature": "true",
|
||||||
|
"saml.authnstatement": "true",
|
||||||
"privateKey": "MIICWwIBAAKBgQDVG8a7xGN6ZIkDbeecySygcDfsypjUMNPE4QJjis8B316CvsZQ0hcTTLUyiRpHlHZys2k3xEhHBHymFC1AONcvzZzpb40tAhLHO1qtAnut00khjAdjR3muLVdGkM/zMC7G5s9iIwBVhwOQhy+VsGnCH91EzkjZ4SVEr55KJoyQJQIDAQABAoGADaTtoG/+foOZUiLjRWKL/OmyavK9vjgyFtThNkZY4qHOh0h3og0RdSbgIxAsIpEa1FUwU2W5yvI6mNeJ3ibFgCgcxqPk6GkAC7DWfQfdQ8cS+dCuaFTs8ObIQEvU50YzeNPiiFxRA+MnauCUXaKm/PnDfjd4tPgru7XZvlGh0wECQQDsBbN2cKkBKpr/b5oJiBcBaSZtWiMNuYBDn9x8uORj+Gy/49BUIMHF2EWyxOWz6ocP5YiynNRkPe21Zus7PEr1AkEA5yWQOkxUTIg43s4pxNSeHt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y3FghE36N2oHy53uichieMxffE6vhkKJ4P8ChfJMMOZlmCPsQPDvjoAghHt4mriFiQgRdPgIy/zDjSNw=="
|
"X509Certificate": "MIIB1DCCAT0CBgFJGP5dZDANBgkqhkiG9w0BAQsFADAwMS4wLAYDVQQDEyVodHRwOi8vbG9jYWxob3N0OjgwODAvc2FsZXMtcG9zdC1zaWcvMB4XDTE0MTAxNjEyNDQyM1oXDTI0MTAxNjEyNDYwM1owMDEuMCwGA1UEAxMlaHR0cDovL2xvY2FsaG9zdDo4MDgwL3NhbGVzLXBvc3Qtc2lnLzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1RvGu8RjemSJA23nnMksoHA37MqY1DDTxOECY4rPAd9egr7GUNIXE0y1MokaR5R2crNpN8RIRwR8phQtQDjXL82c6W+NLQISxztarQJ7rdNJIYwHY0d5ri1XRpDP8zAuxubPYiMAVYcDkIcvlbBpwh/dRM5I2eElRK+eSiaMkCUCAwEAATANBgkqhkiG9w0BAQsFAAOBgQCLms6htnPaY69k1ntm9a5jgwSn/K61cdai8R8B0ccY7zvinn9AfRD7fiROQpFyY29wKn8WCLrJ86NBXfgFUGyR5nLNHVy3FghE36N2oHy53uichieMxffE6vhkKJ4P8ChfJMMOZlmCPsQPDvjoAghHt4mriFiQgRdPgIy/zDjSNw=="
|
||||||
|
@ -89,6 +94,7 @@
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"saml.server.signature": "true",
|
"saml.server.signature": "true",
|
||||||
"saml.client.signature": "true",
|
"saml.client.signature": "true",
|
||||||
|
"saml.authnstatement": "true",
|
||||||
"privateKey": "MIICXQIBAAKBgQDb7kwJPkGdU34hicplwfp6/WmNcaLh94TSc7Jyr9Undp5pkyLgb0DE7EIE+6kSs4LsqCb8HDkB0nLD5DXbBJFd8n0WGoKstelvtg6FtVJMnwN7k7yZbfkPECWH9zF70VeOo9vbzrApNRnct8ZhH5fbflRB4JMA9L9R+LbURdoSKQIDAQABAoGBANtbZG9bruoSGp2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"saml.signature.algorithm": "RSA_SHA512",
|
"saml.signature.algorithm": "RSA_SHA512",
|
||||||
"saml.client.signature": "true",
|
"saml.client.signature": "true",
|
||||||
"saml.encrypt": "true",
|
"saml.encrypt": "true",
|
||||||
|
"saml.authnstatement": "true",
|
||||||
"privateKey": "MIICXQIBAAKBgQDb7kwJPkGdU34hicplwfp6/WmNcaLh94TSc7Jyr9Undp5pkyLgb0DE7EIE+6kSs4LsqCb8HDkB0nLD5DXbBJFd8n0WGoKstelvtg6FtVJMnwN7k7yZbfkPECWH9zF70VeOo9vbzrApNRnct8ZhH5fbflRB4JMA9L9R+LbURdoSKQIDAQABAoGBANtbZG9bruoSGp2s5zhzLzd4hczT6Jfk3o9hYjzNb5Z60ymN3Z1omXtQAdEiiNHkRdNxK+EM7TcKBfmoJqcaeTkW8cksVEAW23ip8W9/XsLqmbU2mRrJiKa+KQNDSHqJi1VGyimi4DDApcaqRZcaKDFXg2KDr/Qt5JFD/o9IIIPZAkEA+ZENdBIlpbUfkJh6Ln+bUTss/FZ1FsrcPZWu13rChRMrsmXsfzu9kZUWdUeQ2Dj5AoW2Q7L/cqdGXS7Mm5XhcwJBAOGZq9axJY5YhKrsksvYRLhQbStmGu5LG75suF+rc/44sFq+aQM7+oeRr4VY88Mvz7mk4esdfnk7ae+cCazqJvMCQQCx1L1cZw3yfRSn6S6u8XjQMjWE/WpjulujeoRiwPPY9WcesOgLZZtYIH8nRL6ehEJTnMnahbLmlPFbttxPRUanAkA11MtSIVcKzkhp2KV2ipZrPJWwI18NuVJXb+3WtjypTrGWFZVNNkSjkLnHIeCYlJIGhDd8OL9zAiBXEm6kmgLNAkBWAg0tK2hCjvzsaA505gWQb4X56uKWdb0IzN+fOLB3Qt7+fLqbVQNQoNGzqey6B4MoS1fUKAStqdGTFYPG/+9t",
|
"privateKey": "MIICXQIBAAKBgQDb7kwJPkGdU34hicplwfp6/WmNcaLh94TSc7Jyr9Undp5pkyLgb0DE7EIE+6kSs4LsqCb8HDkB0nL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aZMi4G9AxOxCBPupErOC7Kgm/Bw5AdJyw+Q12wSRXfJ9FhqCrLXpb7YOhbVSTJ8De5O8mW35DxAlh/cxe9FXjqPb286wKTUZ3LfGYR+X235UQeCTAPS/Ufi21EXaEikCAwEAATANBgkqhkiG9w0BAQsFAAOBgQBMrfGD9QFfx5v7ld/OAto5rjkTe3R1Qei8XRXfcs83vLaqEzjEtTuLGrJEi55kXuJgBpVmQpnwCCkkjSy0JxbqLDdVi9arfWUxEGmOr01ZHycELhDNaQcFqVMPr5kRHIHgktT8hK2IgCvd3Fy9/JCgUgCPxKfhwecyEOKxUc857g=="
|
||||||
|
@ -128,6 +135,7 @@
|
||||||
"saml.server.signature": "true",
|
"saml.server.signature": "true",
|
||||||
"saml.client.signature": "true",
|
"saml.client.signature": "true",
|
||||||
"saml.signature.algorithm": "RSA_SHA1",
|
"saml.signature.algorithm": "RSA_SHA1",
|
||||||
|
"saml.authnstatement": "true",
|
||||||
"privateKey": "MIICXQIBAAKBgQC+9kVgPFpshjS2aT2g52lqTv2lqb1jgvXZVk7iFF4LAO6SdCXKXRZI4SuzIRkVNpE1a42V1kQRlaozoFklgvX5sje8tkpa9ylq+bxGXM9RRycqRu2B+oWUV7Aqq7Bs0Xud0WeHQYRcEoCjqsFKGy65qkLRDdT70FTJgpSHts+gDwIDAQABAoGANU1efgc6ojIvwn7Lsf8GAKN9z2D6uS0T3I9nw1k2CtI+xWhgKAUltEANx5lEfBRYIdYclidRpqrk8DYgzASrDYTHXzqVBJfAk1VrAGpqyRq+TNMLUHkXiTiSDOQ6WqhX93UGMmAgQm1RsLa6+fy1BO/B2y85+Yf2OUylsKS6avECQQDslRDiNFdtEjdvyOL20tQ7+W+eKVxVxKAyQ3gFjIIDizELZt+Jq1Wz6XV9NhK1JFtlVugeD1tlW/+K16fEmDYXAkEAzqKoN/JeGb20rfQldAUWdQbb0jrQAYlgoSU/9fYH9YVJT8vnkfhPBTwIw9H9euf1//lRP/jHltHd5ch4230YyQJBAN3rOk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nzHcHyhYO+hNRGHvUbW5OAii9Vdjhm8BI32YF1NwhKp"
|
"X509Certificate": "MIIB0DCCATkCBgFJH5u0EDANBgkqhkiG9w0BAQsFADAuMSwwKgYDVQQDEyNodHRwOi8vbG9jYWxob3N0OjgwODAvZW1wbG95ZWUtc2lnLzAeFw0xNDEwMTcxOTMzNThaFw0yNDEwMTcxOTM1MzhaMC4xLDAqBgNVBAMTI2h0dHA6Ly9sb2NhbGhvc3Q6ODA4MC9lbXBsb3llZS1zaWcvMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+9kVgPFpshjS2aT2g52lqTv2lqb1jgvXZVk7iFF4LAO6SdCXKXRZI4SuzIRkVNpE1a42V1kQRlaozoFklgvX5sje8tkpa9ylq+bxGXM9RRycqRu2B+oWUV7Aqq7Bs0Xud0WeHQYRcEoCjqsFKGy65qkLRDdT70FTJgpSHts+gDwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBACKyPLGqMX8GsIrCfJU8eVnpaqzTXMglLVo/nTcfAnWe9UAdVe8N3a2PXpDBvuqNA/DEAhVcQgxdlOTWnB6s8/yLTRuH0bZgb3qGdySif+lU+E7zZ/SiDzavAvn+ABqemnzHcHyhYO+hNRGHvUbW5OAii9Vdjhm8BI32YF1NwhKp"
|
||||||
|
|
|
@ -1,106 +0,0 @@
|
||||||
{
|
|
||||||
"id": "demo",
|
|
||||||
"realm": "demo",
|
|
||||||
"enabled": true,
|
|
||||||
"sslRequired": "external",
|
|
||||||
"registrationAllowed": true,
|
|
||||||
"resetPasswordAllowed": true,
|
|
||||||
"passwordCredentialGrantAllowed": true,
|
|
||||||
"privateKey": "MIICXAIBAAKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQABAoGAfmO8gVhyBxdqlxmIuglbz8bcjQbhXJLR2EoS8ngTXmN1bo2L90M0mUKSdc7qF10LgETBzqL8jYlQIbt+e6TH8fcEpKCjUlyq0Mf/vVbfZSNaVycY13nTzo27iPyWQHK5NLuJzn1xvxxrUeXI6A2WFpGEBLbHjwpx5WQG9A+2scECQQDvdn9NE75HPTVPxBqsEd2z10TKkl9CZxu10Qby3iQQmWLEJ9LNmy3acvKrE3gMiYNWb6xHPKiIqOR1as7L24aTAkEAtyvQOlCvr5kAjVqrEKXalj0Tzewjweuxc0pskvArTI2Oo070h65GpoIKLc9jf+UA69cRtquwP93aZKtW06U8dQJAF2Y44ks/mK5+eyDqik3koCI08qaC8HYq2wVl7G2QkJ6sbAaILtcvD92ToOvyGyeE0flvmDZxMYlvaZnaQ0lcSQJBAKZU6umJi3/xeEbkJqMfeLclD27XGEFoPeNrmdx0q10Azp4NfJAY+Z8KRyQCR2BEG+oNitBOZ+YXF9KCpH3cdmECQHEigJhYg+ykOvr1aiZUMFT72HU0jnmQe2FVekuG+LJUt2Tm7GtMjTFoGpf0JwrVuZN39fOYAlo+nTixgeW7X8Y=",
|
|
||||||
"publicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB",
|
|
||||||
"requiredCredentials": [ "password" ],
|
|
||||||
"defaultRoles": [ "user" ],
|
|
||||||
"smtpServer": {
|
|
||||||
"from": "auto@keycloak.org",
|
|
||||||
"host": "localhost",
|
|
||||||
"port":"3025"
|
|
||||||
},
|
|
||||||
"users" : [
|
|
||||||
{
|
|
||||||
"username" : "bburke",
|
|
||||||
"enabled": true,
|
|
||||||
"email" : "bburke@redhat.com",
|
|
||||||
"credentials" : [
|
|
||||||
{ "type" : "password",
|
|
||||||
"value" : "password" }
|
|
||||||
],
|
|
||||||
"realmRoles": ["manager"]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"applications": [
|
|
||||||
{
|
|
||||||
"name": "http://localhost:8080/sales-post/",
|
|
||||||
"enabled": true,
|
|
||||||
"fullScopeAllowed": true,
|
|
||||||
"protocol": "saml",
|
|
||||||
"baseUrl": "http://localhost:8080/sales-post",
|
|
||||||
"adminUrl": "http://localhost:8080/sales-post",
|
|
||||||
"redirectUris": [
|
|
||||||
"http://localhost:8080/sales-post/*"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "http://localhost:8080/sales-post-sig/",
|
|
||||||
"enabled": true,
|
|
||||||
"protocol": "saml",
|
|
||||||
"fullScopeAllowed": true,
|
|
||||||
"baseUrl": "http://localhost:8080/sales-post-sig",
|
|
||||||
"adminUrl": "http://localhost:8080/sales-post-sig",
|
|
||||||
"redirectUris": [
|
|
||||||
"http://localhost:8080/sales-post-sig/*"
|
|
||||||
],
|
|
||||||
"attributes": {
|
|
||||||
"saml.server.signature": "true",
|
|
||||||
"saml.client.signature": "true",
|
|
||||||
"privateKey": "MIICWwIBAAKBgQDVG8a7xGN6ZIkDbeecySygcDfsypjUMNPE4QJjis8B316CvsZQ0hcTTLUyiRpHlHZys2k3xEhHBHymFC1AONcvzZzpb40tAhLHO1qtAnut00khjAdjR3muLVdGkM/zMC7G5s9iIwBVhwOQhy+VsGnCH91EzkjZ4SVEr55KJoyQJQIDAQABAoGADaTtoG/+foOZUiLjRWKL/OmyavK9vjgyFtThNkZY4qHOh0h3og0RdSbgIxAsIpEa1FUwU2W5yvI6mNeJ3ibFgCgcxqPk6GkAC7DWfQfdQ8cS+dCuaFTs8ObIQEvU50YzeNPiiFxRA+MnauCUXaKm/PnDfjd4tPgru7XZvlGh0wECQQDsBbN2cKkBKpr/b5oJiBcBaSZtWiMNuYBDn9x8uORj+Gy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kqhkiG9w0BAQsFAAOBgQCLms6htnPaY69k1ntm9a5jgwSn/K61cdai8R8B0ccY7zvinn9AfRD7fiROQpFyY29wKn8WCLrJ86NBXfgFUGyR5nLNHVy3FghE36N2oHy53uichieMxffE6vhkKJ4P8ChfJMMOZlmCPsQPDvjoAghHt4mriFiQgRdPgIy/zDjSNw=="
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "http://localhost:8080/sales-post-enc/",
|
|
||||||
"enabled": true,
|
|
||||||
"protocol": "saml",
|
|
||||||
"fullScopeAllowed": true,
|
|
||||||
"baseUrl": "http://localhost:8080/sales-post-enc",
|
|
||||||
"adminUrl": "http://localhost:8080/sales-post-enc",
|
|
||||||
"redirectUris": [
|
|
||||||
"http://localhost:8080/sales-post-enc/*"
|
|
||||||
],
|
|
||||||
"attributes": {
|
|
||||||
"saml.server.signature": "true",
|
|
||||||
"saml.client.signature": "true",
|
|
||||||
"saml.encrypt": "true",
|
|
||||||
"privateKey": "MIICXQIBAAKBgQDb7kwJPkGdU34hicplwfp6/WmNcaLh94TSc7Jyr9Undp5pkyLgb0DE7EIE+6kSs4LsqCb8HDkB0nLD5DXbBJFd8n0WGoKstelvtg6FtVJMnwN7k7yZbfkPECWH9zF70VeOo9vbzrApNRnct8ZhH5fbflRB4JMA9L9R+LbURdoSKQIDAQABAoGBANtbZG9bruoSGp2s5zhzLzd4hczT6Jfk3o9hYjzNb5Z60ymN3Z1omXtQAdEiiNHkRdNxK+EM7TcKBfmoJqcaeTkW8cksVEAW23ip8W9/XsLqmbU2mRrJiKa+KQNDSHqJi1VGyimi4DDApcaqRZcaKDFXg2KDr/Qt5JFD/o9IIIPZAkEA+ZENdBIlpbUfkJh6Ln+bUTss/FZ1FsrcPZWu13rChRMrsmXsfzu9kZUWdUeQ2Dj5AoW2Q7L/cqdGXS7Mm5XhcwJBAOGZq9axJY5YhKrsksvYRLhQbStmGu5LG75suF+rc/44sFq+aQM7+oeRr4VY88Mvz7mk4esdf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0JxbqLDdVi9arfWUxEGmOr01ZHycELhDNaQcFqVMPr5kRHIHgktT8hK2IgCvd3Fy9/JCgUgCPxKfhwecyEOKxUc857g=="
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "http://localhost:8080/employee-sig/",
|
|
||||||
"enabled": true,
|
|
||||||
"protocol": "saml",
|
|
||||||
"fullScopeAllowed": true,
|
|
||||||
"baseUrl": "http://localhost:8080/employee-sig",
|
|
||||||
"adminUrl": "http://localhost:8080/employee-sig",
|
|
||||||
"redirectUris": [
|
|
||||||
"http://localhost:8080/employee-sig/*"
|
|
||||||
],
|
|
||||||
"attributes": {
|
|
||||||
"saml.server.signature": "true",
|
|
||||||
"saml.client.signature": "true",
|
|
||||||
"privateKey": "MIICXQIBAAKBgQC+9kVgPFpshjS2aT2g52lqTv2lqb1jgvXZVk7iFF4LAO6SdCXKXRZI4SuzIRkVNpE1a42V1kQRlaozoFklgvX5sje8tkpa9ylq+bxGXM9RRycqRu2B+oWUV7Aqq7Bs0Xud0WeHQYRcEoCjqsFKGy65qkLRDdT70FTJgpSHts+gDwIDAQABAoGANU1efgc6ojIvwn7Lsf8GAKN9z2D6uS0T3I9nw1k2CtI+xWhgKAUltEANx5lEfBRYIdYclidRpqrk8DYgzASrDYTHXzqVBJfAk1VrAGpqyRq+TNMLUHkXiTiSDOQ6WqhX93UGMmAgQm1RsLa6+fy1BO/B2y85+Yf2OUylsKS6avECQQDslRDiNFdtEjdvyOL20tQ7+W+eKVxVxKAyQ3gFjIIDizELZt+Jq1Wz6XV9NhK1JFtlVugeD1tlW/+K16fEmDYXAkEAzqKoN/JeGb20rfQldAUWdQbb0jrQAYlgoSU/9fYH9YVJT8vnkfhPBTwIw9H9euf1//lRP/jHltHd5ch4230YyQJBAN3rOkoltPiABPZbpuLGgwS7BwOCYrWlWmurtBLoaTCvyVKbrgXybNL1pBrOtR+rufvGWLeRyja65Gs1vY6BBQMCQQCTsNq/MjJj/522f7yNUl2cw4w2lOa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||||
"roles" : {
|
|
||||||
"realm" : [
|
|
||||||
{
|
|
||||||
"name": "manager",
|
|
||||||
"description": "Have Manager privileges"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue