diff --git a/keycloak/OdmOidcProviders.json b/keycloak/OdmOidcProviders.json deleted file mode 100755 index bb644588..00000000 --- a/keycloak/OdmOidcProviders.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "providers": [ - { - "name": "keycloack", - "grantType": "client_credentials", - "authorizationURL": "https://mycompany.com:8443/auth/realms/master/protocol/openid-connect/auth", - "tokenURL": "https://mycompany.com:8443/auth/realms/master/protocol/openid-connect/token", - "introspectionURL": "https://mycompany.com:8443/auth/realms/master/protocol/openid-connect/token/introspect", - "clientId": "odm", - "clientSecret": "vU8bLJ9iumYjEvr0EmqsHQLmoFSqoU4F" - }, - { - "name": "keycloack_pwd", - "grantType": "password", - "authorizationURL": "https://mycompany.com:8443/auth/realms/master/protocol/openid-connect/auth", - "tokenURL": "https://mycompany.com:8443/auth/realms/master/protocol/openid-connect/token", - "introspectionURL": "https://mycompany.com:8443/auth/realms/master/protocol/openid-connect/token/introspect", - "clientId": "odm", - "clientSecret": "vU8bLJ9iumYjEvr0EmqsHQLmoFSqoU4F" - } - ] -} diff --git a/keycloak/apitests/executeApiTests.sh b/keycloak/apitests/executeApiTests.sh deleted file mode 100755 index 6bbbfd44..00000000 --- a/keycloak/apitests/executeApiTests.sh +++ /dev/null @@ -1,110 +0,0 @@ -#!/bin/sh - -# The script invokes ODM APIs using a BA or bearer header - -# odmhost=https://odm-dev-dbaoc-4qtest2.blueworkscloud.com -# odmhost=https://odm-dev-dbaoc-demo-4q.automationcloud.ibm.com -# odmhost=https://localhost:9444 -# odmhost=https://odm-dev-dbaoc-4qtest2.blueworkscloud.com -# odmhost=https://decisioncenter.odm.odmokta.apps.mat-test2.cp.fyre.ibm.com -dc_odmhost=https://9.171.21.112:9643/decisioncenter -dr_odmhost=https://9.171.21.112:9743/DecisionRunner -dsc_odmhost=https://9.171.21.112:9843/res -dsr_odmhost=https://9.171.21.112:9943/DecisionService - -# FID Blueworkscloud: cjin-odm.fid@t7916, vzq6lCqwLLV5nZrjYhLN9enplBx4U7xeKci1vJOG -# BA_SAAS_FID="Authorization: Basic Y2ppbi1vZG0uZmlkQHQ3OTE2OnZ6cTZsQ3F3TExWNW5acmpZaExOOWVucGxCeDRVN3hlS2NpMXZKT0c=" - -# FID automationcloud: cjin.fid@t7918, cgQMKAk4ByXmpNDd30XnLBZbNU5dZTuAGyoU0dLX -#BA_SAAS_FID="Authorization: Basic Y2ppbi5maWRAdDc5MTg6Y2dRTUtBazRCeVhtcE5EZDMwWG5MQlpiTlU1ZFpUdUFHeW9VMGRMWA==" - -# FID: cjin.fid@t7916, wxCLYhdY1LpZliCuShO2du6qY7YqJOavB8esCDPm -#BA_SAAS_FID="Authorization: Basic Y2ppbi5maWRAdDc5MTY6d3hDTFloZFkxTHBabGlDdVNoTzJkdTZxWTdZcUpPYXZCOGVzQ0RQbQ==" - -# Local host with odmAdmin / odmAdmin -#BA_HEADER="Authorization: Basic b2RtQWRtaW46b2RtQWRtaW4=" - -#AUTH=$BA_SAAS_FID -# AUTH=$BA_HEADER - - -AUTH="Authorization: Bearer $1" - -echo $AUTH - -echo --------------------------------------------------------------------- -echo Invoking: ${odmhost}/res/api/ruleapps?count=true -echo Response: -curl -k -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \ - -H "$AUTH" \ - ${dsc_odmhost}/res/api/ruleapps?count=true -echo "" - -echo --------------------------------------------------------------------- -echo Invoking: ${odmhost}/res/auth?ping=pong -echo Response: -curl -k -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \ - -H "$AUTH" \ - ${dsc_odmhost}/res/auth?ping=pong -echo "" - -echo --------------------------------------------------------------------- -echo Invoking: ${odmhost}/decisioncenter-api/v1/about -echo Response: -curl -k \ - -H "$AUTH" \ - ${dc_odmhost}/decisioncenter-api/v1/about 2>&1 -echo "" - -echo --------------------------------------------------------------------- -echo Invoking: ${odmhost}/decisioncenter-api/v1/decisionservices -echo Response: -curl -k \ - -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \ - -H "$AUTH" \ - ${dc_odmhost}/decisioncenter-api/v1/decisionservices 2>&1 -echo "" - -echo --------------------------------------------------------------------- -echo Invoking: ${odmhost}/decisioncenter-api/v1/servers/ext -echo Response: -curl -k \ - -H "$AUTH" \ - ${dc_odmhost}/decisioncenter-api/v1/servers/ext 2>&1 -echo "" - -echo --------------------------------------------------------------------- -echo Invoking: ${odmhost}/DecisionRunner/serverinfo -echo Response: -curl -k -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \ - -H "$AUTH" \ - ${dr_odmhost}/DecisionRunner/serverinfo -echo "" - -echo --------------------------------------------------------------------- -echo Deploying XOM and the ruleapp... -curl -k -H "Content-Type: application/octet-stream" \ - -H "$AUTH" \ - --data-binary "@./rulesets/SampleXOM.zip" \ - ${dsc_odmhost}/res/api/v1/xoms/SampleXOM.zip - -curl -k -H "Content-Type: application/octet-stream" \ - -H "$AUTH" \ - --data-binary "@./rulesets/ruleApp_DeploySample_1.0.jar" \ - ${dsc_odmhost}/res/api/v1/ruleapps - -echo --------------------------------------------------------------------- -echo Invoking: ${dsr_odmhost}/DecisionService/rest/DeploySample/1.0/MainOperation/1.1 -echo Response: -curl -k -H "Content-Type: application/json" \ - -H "$AUTH" \ - -d @- "${dsr_odmhost}/DecisionService/rest/DeploySample/1.0/MainOperation/1.1" <<+++ -{ - "__DecisionID__": "string", - "DomainSample": { - "astr": "string", - "bstr": "string" - } -} -+++ -echo diff --git a/keycloak/apitests/rulesets/SampleXOM.zip b/keycloak/apitests/rulesets/SampleXOM.zip deleted file mode 100644 index f8aeffc8..00000000 Binary files a/keycloak/apitests/rulesets/SampleXOM.zip and /dev/null differ diff --git a/keycloak/apitests/rulesets/payloadEmpty.json b/keycloak/apitests/rulesets/payloadEmpty.json deleted file mode 100644 index 08608eac..00000000 --- a/keycloak/apitests/rulesets/payloadEmpty.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "__DecisionID__": "string", - "DomainSample": { - "astr": "string", - "bstr": "string" - } -} diff --git a/keycloak/apitests/rulesets/payloadLoan.json b/keycloak/apitests/rulesets/payloadLoan.json deleted file mode 100644 index e59f6e4e..00000000 --- a/keycloak/apitests/rulesets/payloadLoan.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "loan": { - "amount": 3, - "duration": 3, - "yearlyInterestRate": 10517320, - "yearlyRepayment": 3, - "approved": false, - "messages": [ - "string" - ] - }, - "__DecisionID__": "string", - "borrower": { - "name": "string", - "creditScore": 3, - "yearlyIncome": 3 - } -} diff --git a/keycloak/apitests/rulesets/ruleApp_DeploySample_1.0.jar b/keycloak/apitests/rulesets/ruleApp_DeploySample_1.0.jar deleted file mode 100644 index de18c460..00000000 Binary files a/keycloak/apitests/rulesets/ruleApp_DeploySample_1.0.jar and /dev/null differ diff --git a/keycloak/env-keycloak-trial.sh b/keycloak/env-keycloak-trial.sh deleted file mode 100755 index 1a13cb66..00000000 --- a/keycloak/env-keycloak-trial.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -server_url=http://keycloak-keycloak.apps.kanab.cp.fyre.ibm.com/auth/realms/master -authorization_url=${server_url}/protocol/openid-connect/auth -token_url=${server_url}/protocol/openid-connect/token -introspect_url=${server_url}/protocol/openid-connect/token/introspect - - -username=jdoe -password=jdoe - -#username=admin -#password=admin - -# Credentials returned by the registration -client_id=odm -client_secret=vU8bLJ9iumYjEvr0EmqsHQLmoFSqoU4F diff --git a/keycloak/group-security-configurations.xml b/keycloak/group-security-configurations.xml deleted file mode 100644 index f3804458..00000000 --- a/keycloak/group-security-configurations.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/keycloak/keycloak.crt b/keycloak/keycloak.crt deleted file mode 100644 index 6c3ecd4b..00000000 --- a/keycloak/keycloak.crt +++ /dev/null @@ -1,18 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIC7DCCAdSgAwIBAgIEQc9iATANBgkqhkiG9w0BAQsFADAYMRYwFAYDVQQDEw1t -eWNvbXBhbnkuY29tMB4XDTIyMDIxNTEwNTg0NVoXDTIyMDUxNjEwNTg0NVowGDEW -MBQGA1UEAxMNbXljb21wYW55LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC -AQoCggEBAI1uwui6atcz4VgMzMwIsu8lxUAhj/0Dssljnl/5eakhruTivyM+CpdS -Ke9+31/NumdaoIpjIWqwLf3kgjMqF06PynVLFnOE6Ub4hSP1PwBnsBJ+y+CDZs40 -AgnR9iBEzYn9F+whiAugkt7uVME2BwcXzlVKDpIth3L9kH2J5tNMcXYD/cuShtY4 -d8LY85KaPmLzkmCSYcRsAtlKaUPTNV/EZ9C4zDIaZM92609S06jAtW2hb9LN3G1V -WaWmRxxubL/pHDPnQFx5MtzkojCZuM039HmJDhanY6uclmuZvecWLIEeeTbflL6l -NUbCEM0nUSdRVPy+GpmFoSb10x+CiI0CAwEAAaM+MDwwHQYDVR0OBBYEFDL1S7E8 -VHMPw6MSwehPQ0uKSiDCMBsGA1UdEQEB/wQRMA+CDW15Y29tcGFueS5jb20wDQYJ -KoZIhvcNAQELBQADggEBAGt+oI4hmsaG3tNW/V3zLRq/E9c5/JIS++uVfcG3xgeA -yz1AjdKzJPUCxhZ+WfqLEG1m8f6ZcwtGBSNvcfLCD0H6oNrUyfLyInAv/9M38nkd -IIfu2qw5JDhAwIims9G3IvCd0NpUfreJG9QYeWx0lBoIJJLftXeubhHcqHctA84Y -yjvgKho4HMGDda9UHuKvEkOTqSJ7pVvsQWuR240oQ/czn/tYIBKk9F9M/vdfEfX1 -bUzn8i5HpO4rpVltBos26NubiYIZnU9tqGjszV8Xmb3AXf3wgaYkTcrHVq9UfeEB -Nsu9NqOwHWQadfbe9/XSSeW5BVXd4y3EbRwHDeHlb1o= ------END CERTIFICATE----- diff --git a/keycloak/keycloak.mv.db b/keycloak/keycloak.mv.db deleted file mode 100644 index 82e08db7..00000000 Binary files a/keycloak/keycloak.mv.db and /dev/null differ diff --git a/keycloak/keystore.jks b/keycloak/keystore.jks deleted file mode 100644 index 39a3831e..00000000 Binary files a/keycloak/keystore.jks and /dev/null differ diff --git a/keycloak/ldap-configurations.xml b/keycloak/ldap-configurations.xml deleted file mode 100644 index 1edb9dda..00000000 --- a/keycloak/ldap-configurations.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - http://keycloak-keycloak.apps.kanab.cp.fyre.ibm.com/auth/realms/master/scim/v2 - jdoe - jdoe - displayName%20co%20%22odm%22 - displayName - userName - userName - emails.value - - - ScimAuthenticationKind - OAUTH - - - - - ScimAuthenticationProvider - keycloack_pwd - - - - - IsScim - true - - - - - diff --git a/keycloak/odmtruststore.jks b/keycloak/odmtruststore.jks deleted file mode 100644 index eabc73ae..00000000 Binary files a/keycloak/odmtruststore.jks and /dev/null differ diff --git a/keycloak/oktaclient-create.sh b/keycloak/oktaclient-create.sh deleted file mode 100755 index 5a4d8616..00000000 --- a/keycloak/oktaclient-create.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -source env-okta-trial.sh - -curl -X POST \ - -H "Accept: application/json" \ - -H "Content-Type:application/json" \ - -d @- "${registration_url}" <<+++ -{ - "client_name": "ODM client", - "application_type": "web", - "introspect_tokens": true, - "response_types": ["code", "token", "id_token"], - "grant_types": ["authorization_code", "client_credentials", "password", "refresh_token", "implicit"], - "redirect_uris": [ - "https://localhost:9444/oidcclient/redirect/odm", - "https://localhost:9643/oidcclient/redirect/odm", - "https://localhost/tokenreceiver" - ] -} -+++ -echo diff --git a/keycloak/oktaclient-delete.sh b/keycloak/oktaclient-delete.sh deleted file mode 100755 index 7ecd5902..00000000 --- a/keycloak/oktaclient-delete.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -source env-okta-trial.sh - -curl -X DELETE \ - -H "Accept: application/json" \ - -H "Content-Type:application/json" \ - -H "Authorization: SSWS ${api_token}" \ - "${registration_url}/${client_id}" | jq diff --git a/keycloak/oktaclient-get.sh b/keycloak/oktaclient-get.sh deleted file mode 100755 index 22ac3b7d..00000000 --- a/keycloak/oktaclient-get.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -source env-okta-trial.sh - -echo "${registration_url}/${client_id}" -curl \ - -H "Accept: application/json" \ - -H "Content-Type:application/json" \ - -H "Authorization: SSWS ${api_token}" \ - "${registration_url}/${client_id}" | jq diff --git a/keycloak/oktaclient-list.sh b/keycloak/oktaclient-list.sh deleted file mode 100755 index 7e30bb49..00000000 --- a/keycloak/oktaclient-list.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -source env-okta-trial.sh - -curl \ - -H "Accept: application/json" \ - -H "Content-Type:application/json" \ - -H "Authorization: bearer $1" \ - "${registration_url}" | jq diff --git a/keycloak/oktaclient-update.sh b/keycloak/oktaclient-update.sh deleted file mode 100755 index 8be1556c..00000000 --- a/keycloak/oktaclient-update.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -source env-okta-trial.sh - -curl -X PUT \ - -H "Accept: application/json" \ - -H "Content-Type:application/json" \ - -H "Authorization: SSWS ${api_token}" \ - -d @- "${registration_url}/${client_id}" <<+++ -{ - "client_id": "${client_id}", - "client_name": "ODM client", - "client_uri": "https://www.example-application.com", - "application_type": "web", - "response_types": ["code", "token", "id_token"], - "grant_types": ["authorization_code", "refresh_token", "implicit"], - "token_endpoint_auth_method": "client_secret_post", - "redirect_uris": [ - "https://localhost/tokenreceiver", - "https://localhost/tokenreceiver2", - "https://localhost:9444/oidcclient/redirect/odm", - "https://localhost:9643/oidcclient/redirect/odm", - "https://localhost:9743/oidcclient/redirect/odm", - "https://localhost:9843/oidcclient/redirect/odm", - "https://localhost:9943/oidcclient/redirect/odm", - "https://9.171.58.116:9643/oidcclient/redirect/odm", - "https://9.171.58.116:9743/oidcclient/redirect/odm", - "https://9.171.58.116:9843/oidcclient/redirect/odm", - "https://9.171.58.116:9943/oidcclient/redirect/odm" - ] -} -+++ -echo diff --git a/keycloak/openIdParameters.properties b/keycloak/openIdParameters.properties deleted file mode 100644 index c22dbe9a..00000000 --- a/keycloak/openIdParameters.properties +++ /dev/null @@ -1,10 +0,0 @@ -OPENID_SERVER_URL=http://keycloak-keycloak.apps.kanab.cp.fyre.ibm.com/auth/realms/master -OPENID_PROVIDER=keycloack -OPENID_AUTHORIZATION_URL=http://keycloak-keycloak.apps.kanab.cp.fyre.ibm.com/auth/realms/master/protocol/openid-connect/auth -OPENID_TOKEN_URL=http://keycloak-keycloak.apps.kanab.cp.fyre.ibm.com/auth/realms/master/protocol/openid-connect/token -OPENID_INTROSPECTION_URL=http://keycloak-keycloak.apps.kanab.cp.fyre.ibm.com/auth/realms/master/protocol/openid-connect/token/introspect -OPENID_CLIENT_ID=odm -OPENID_CLIENT_SECRET=vU8bLJ9iumYjEvr0EmqsHQLmoFSqoU4F -OPENID_TOKEN_FORMAT=JWT -OPENID_LOGOUT_URL=http://keycloak-keycloak.apps.kanab.cp.fyre.ibm.com/auth/realms/master/protocol/openid-connect/logout -OPENID_ALLOWED_DOMAINS=okta.com diff --git a/keycloak/openIdWebSecurity.xml b/keycloak/openIdWebSecurity.xml deleted file mode 100644 index e3c1207d..00000000 --- a/keycloak/openIdWebSecurity.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - diff --git a/keycloak/openIdWebSecurity_old.xml b/keycloak/openIdWebSecurity_old.xml deleted file mode 100644 index d72fe543..00000000 --- a/keycloak/openIdWebSecurity_old.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - diff --git a/keycloak/server-configurations.json b/keycloak/server-configurations.json deleted file mode 100755 index 24593745..00000000 --- a/keycloak/server-configurations.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "name": "Decision Service Execution", - "kind": "RES", - "url": "https://odm-decisionserverconsole:9443/res", - "authenticationKind": "OAUTH", - "authenticationProvider": "keycloack", - "builtIn": "false", - "description": "Use this server to deploy decision services that you want to execute.", - "groups": [ - "*" - ] - }, - { - "name": "Test and Simulation Execution", - "kind": "DECISION_RUNNER", - "url": "https://odm-decisionrunner:9443/DecisionRunner", - "authenticationKind": "OAUTH", - "authenticationProvider": "keycloack", - "builtIn": "false", - "description": "Use this server to run tests and simulations for decision services.", - "groups": [ - "*" - ] - } -] diff --git a/keycloak/token-clientcredentials.sh b/keycloak/token-clientcredentials.sh deleted file mode 100755 index 9f823fa0..00000000 --- a/keycloak/token-clientcredentials.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -source env-keycloak-trial.sh - -scope=openid - -curl -k -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \ - -d "scope=${scope}&grant_type=client_credentials&client_id=${client_id}&client_secret=${client_secret}" \ - ${token_url} | jq - -echo "" diff --git a/keycloak/token-introspect-keycloack.sh b/keycloak/token-introspect-keycloack.sh deleted file mode 100755 index b70644d7..00000000 --- a/keycloak/token-introspect-keycloack.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -source env-okta-trial.sh - -curl -k \ - -d "client_secret=${client_secret}&client_id=${client_id}&username=mathias&token=$1" \ - ${introspect_url} | jq - -echo "" diff --git a/keycloak/token-introspect.sh b/keycloak/token-introspect.sh deleted file mode 100755 index 7b3a75ed..00000000 --- a/keycloak/token-introspect.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -source env-keycloak-trial.sh - -curl -k -u "${client_id}:${client_secret}" \ - -d "token_type_hint=access_token&token=$1" \ - ${introspect_url} | jq - -echo "" diff --git a/keycloak/token-password.sh b/keycloak/token-password.sh deleted file mode 100755 index e180d557..00000000 --- a/keycloak/token-password.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -source env-keycloak-trial.sh - -scope=openid - -curl -k -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \ - -d "scope=${scope}&grant_type=password&client_id=${client_id}&client_secret=${client_secret}&username=${username}&password=${password}" \ - ${token_url} | jq - -echo "" diff --git a/keycloak/truststore.jks b/keycloak/truststore.jks deleted file mode 100644 index 73debaa3..00000000 Binary files a/keycloak/truststore.jks and /dev/null differ diff --git a/keycloak/webSecurity.xml b/keycloak/webSecurity.xml deleted file mode 100644 index 7043b768..00000000 --- a/keycloak/webSecurity.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - -