diff --git a/financial-services-accelerator/accelerators/fs-apim/README.md b/financial-services-accelerator/accelerators/fs-apim/README.md index c5b498b2..9fbe6619 100644 --- a/financial-services-accelerator/accelerators/fs-apim/README.md +++ b/financial-services-accelerator/accelerators/fs-apim/README.md @@ -1,26 +1,26 @@ -### **WSO2 Open Banking APIM Accelerator 3.0.0** +### **WSO2 Financial Services APIM Accelerator 4.0.0** **Try Locally:** Prerequisites: 1. [Download](https://wso2.com/api-manager/#) the WSO2 API Manager product 2. Build the repository completely using the below command to create accelerator zip files. -mvn clean install -PSolution -3. Locate the Accelerator Zip file (wso2-obam-accelerator-3.0.0.zip) from +mvn clean install -P Solution +3. Locate the Accelerator Zip file (wso2-fsam-accelerator-4.0.0.zip) from the target folder in this directory 4. Setup MySQL database server 5. Install Java on your local machine -Below are the simplified steps to install the WSO2 Open Banking Accelerator. For more information, +Below are the simplified steps to install the WSO2 Financial Services Accelerator. For more information, please refer to [Quick Start Guide](https://ob.docs.wso2.com/en/latest/get-started/quick-start-guide/) or to [ Complete install and Setup Guide ](https://ob.docs.wso2.com/en/latest/install-and-setup/) Steps: 1. Extract the Base product (WSO2 API Manager product) to a preferred location () -2. Extract WSO2 OB APIM Accelerator (wso2-obam-accelerator-3.0.0.zip) to WSO2_APIM_HOME -3. Run /bin/merge.sh. This will copy/install the Open Banking artifacts to +2. Extract WSO2 FS APIM Accelerator (wso2-fsam-accelerator-4.0.0.zip) to WSO2_APIM_HOME +3. Run /bin/merge.sh. This will copy/install the Financial Services artifacts to the WSO2 API Manager product -4. Run /bin/configure.sh. This will configure the server and create databases and tables. +4. Run /bin/configure.sh. This will configure the server and create databases and tables. 5. Run /bin/wso2server.sh to start the server. diff --git a/financial-services-accelerator/accelerators/fs-apim/bin/configure.ps1 b/financial-services-accelerator/accelerators/fs-apim/bin/configure.ps1 index 84f16ca1..ea57e597 100644 --- a/financial-services-accelerator/accelerators/fs-apim/bin/configure.ps1 +++ b/financial-services-accelerator/accelerators/fs-apim/bin/configure.ps1 @@ -68,12 +68,12 @@ Function Find-Replace { # Get the root directory location of the accelerator. Which is // Set-Location (Join-Path $PSScriptRoot ".\..\") -$WSO2_OB_ACCELERATOR_HOME = (Get-Location).path -Write-Output "[INFO] Accelerator Home : $WSO2_OB_ACCELERATOR_HOME" +$WSO2_FS_ACCELERATOR_HOME = (Get-Location).path +Write-Output "[INFO] Accelerator Home : $WSO2_FS_ACCELERATOR_HOME" # Get the root directory of the base product. if ($null -eq $WSO2_BASE_PRODUCT_HOME) { - Set-Location (Join-Path $WSO2_OB_ACCELERATOR_HOME ".\..\") + Set-Location (Join-Path $WSO2_FS_ACCELERATOR_HOME ".\..\") $WSO2_BASE_PRODUCT_HOME = (Get-Location).path } Write-Output "[INFO] Base Product Home : $WSO2_BASE_PRODUCT_HOME" @@ -90,16 +90,16 @@ if (-NOT(Test-Path (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components"))) } # Get the location of the configure.properties -$CONFIG_PROPERTIES_PATH = Join-Path $WSO2_OB_ACCELERATOR_HOME "repository\conf\configure.properties" +$CONFIG_PROPERTIES_PATH = Join-Path $WSO2_FS_ACCELERATOR_HOME "repository\conf\configure.properties" Write-Output "[INFO] configure.properties location : $CONFIG_PROPERTIES_PATH" # Load the variables in the configure.properties file $PROPERTIES = ConvertFrom-StringData (Get-Content $CONFIG_PROPERTIES_PATH -raw) -$SELECTED_DEPLOYMENT_TOML_FILE = Join-Path $WSO2_OB_ACCELERATOR_HOME $PROPERTIES.'PRODUCT_CONF_PATH' +$SELECTED_DEPLOYMENT_TOML_FILE = Join-Path $WSO2_FS_ACCELERATOR_HOME $PROPERTIES.'PRODUCT_CONF_PATH' Write-Output "[INFO] Selected deployment.toml location : $SELECTED_DEPLOYMENT_TOML_FILE" -$DEPLOYMENT_TOML_FILE = Join-Path $WSO2_OB_ACCELERATOR_HOME "repository\resources\deployment.toml" +$DEPLOYMENT_TOML_FILE = Join-Path $WSO2_FS_ACCELERATOR_HOME "repository\resources\deployment.toml" # Temporary copy the selected toml file so we can make changes to it. Copy-Item -Path $SELECTED_DEPLOYMENT_TOML_FILE $DEPLOYMENT_TOML_FILE Write-Output "[INFO] Temporary deployment.toml location : $DEPLOYMENT_TOML_FILE" @@ -139,7 +139,6 @@ Function Set-Datasources Function Set-Hostnames { Find-Replace $DEPLOYMENT_TOML_FILE "APIM_HOSTNAME" "$( $PROPERTIES.'APIM_HOSTNAME' )" Find-Replace $DEPLOYMENT_TOML_FILE "IS_HOSTNAME" "$( $PROPERTIES.'IS_HOSTNAME' )" - Find-Replace $DEPLOYMENT_TOML_FILE "BI_HOSTNAME" "$( $PROPERTIES.'BI_HOSTNAME' )" } # A utility function to create a database. diff --git a/financial-services-accelerator/accelerators/fs-apim/bin/configure.sh b/financial-services-accelerator/accelerators/fs-apim/bin/configure.sh index f04cb235..265bf794 100755 --- a/financial-services-accelerator/accelerators/fs-apim/bin/configure.sh +++ b/financial-services-accelerator/accelerators/fs-apim/bin/configure.sh @@ -16,10 +16,10 @@ # under the License. # command to execute -# ./merge.sh +# ./merge.sh source $(pwd)/../repository/conf/configure.properties -WSO2_OB_APIM_HOME=$1 +WSO2_APIM_HOME=$1 # set accelerator home cd ../ @@ -27,15 +27,15 @@ ACCELERATOR_HOME=$(pwd) echo "Accelerator Home: ${ACCELERATOR_HOME}" # set product home -if [ "${WSO2_OB_APIM_HOME}" == "" ] +if [ "${WSO2_APIM_HOME}" == "" ] then cd ../ - WSO2_OB_APIM_HOME=$(pwd) - echo "Product Home: ${WSO2_OB_APIM_HOME}" + WSO2_APIM_HOME=$(pwd) + echo "Product Home: ${WSO2_APIM_HOME}" fi # validate product home -if [ ! -d "${WSO2_OB_APIM_HOME}/repository/components" ]; then +if [ ! -d "${WSO2_APIM_HOME}/repository/components" ]; then echo -e "\n\aERROR:specified product path is not a valid carbon product path\n"; exit 2; else @@ -86,7 +86,7 @@ create_databases() { echo -e "\nUpdate am_application_registration table input field size (temporary)" echo -e "=======================================================================\n" - sed -i -e 's|INPUTS VARCHAR(1000)|INPUTS VARCHAR(7500)|g' ${WSO2_OB_APIM_HOME}/dbscripts/apimgt/mysql.sql + sed -i -e 's|INPUTS VARCHAR(1000)|INPUTS VARCHAR(7500)|g' ${WSO2_APIM_HOME}/dbscripts/apimgt/mysql.sql echo -e "\nCreate database tables" @@ -101,8 +101,8 @@ create_databases() { echo -e "\nUpdate idn_req_object_reference table foreign keys (temporary)" echo -e "=======================================================================\n" - sed -i -e 's|FOREIGN KEY (CONSUMER_KEY_ID) REFERENCES IDN_OAUTH_CONSUMER_APPS(ID) ON DELETE CASCADE ,|FOREIGN KEY (CONSUMER_KEY_ID) REFERENCES IDN_OAUTH_CONSUMER_APPS(ID),|g' ${WSO2_OB_APIM_HOME}/dbscripts/apimgt/mssql.sql - sed -i -e 's|FOREIGN KEY (TOKEN_ID) REFERENCES IDN_OAUTH2_ACCESS_TOKEN(TOKEN_ID),|FOREIGN KEY (TOKEN_ID) REFERENCES IDN_OAUTH2_ACCESS_TOKEN(TOKEN_ID) ON DELETE CASCADE,|g' ${WSO2_OB_APIM_HOME}/dbscripts/apimgt/mssql.sql + sed -i -e 's|FOREIGN KEY (CONSUMER_KEY_ID) REFERENCES IDN_OAUTH_CONSUMER_APPS(ID) ON DELETE CASCADE ,|FOREIGN KEY (CONSUMER_KEY_ID) REFERENCES IDN_OAUTH_CONSUMER_APPS(ID),|g' ${WSO2_APIM_HOME}/dbscripts/apimgt/mssql.sql + sed -i -e 's|FOREIGN KEY (TOKEN_ID) REFERENCES IDN_OAUTH2_ACCESS_TOKEN(TOKEN_ID),|FOREIGN KEY (TOKEN_ID) REFERENCES IDN_OAUTH2_ACCESS_TOKEN(TOKEN_ID) ON DELETE CASCADE,|g' ${WSO2_APIM_HOME}/dbscripts/apimgt/mssql.sql fi } @@ -123,25 +123,24 @@ create_mysql_databases() { }; create_mysql_database_tables() { - mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_APIMGT} -h${DB_HOST} -e "SOURCE ${WSO2_OB_APIM_HOME}/dbscripts/apimgt/mysql.sql"; + mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_APIMGT} -h${DB_HOST} -e "SOURCE ${WSO2_APIM_HOME}/dbscripts/apimgt/mysql.sql"; echo "Database tables Created for: ${DB_APIMGT}" - mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_AM_CONFIG} -h${DB_HOST} -e "SOURCE ${WSO2_OB_APIM_HOME}/dbscripts/mysql.sql"; + mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_AM_CONFIG} -h${DB_HOST} -e "SOURCE ${WSO2_APIM_HOME}/dbscripts/mysql.sql"; echo "Database tables Created for: ${DB_AM_CONFIG}" - mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_GOV} -h${DB_HOST} -e "SOURCE ${WSO2_OB_APIM_HOME}/dbscripts/mysql.sql"; + mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_GOV} -h${DB_HOST} -e "SOURCE ${WSO2_APIM_HOME}/dbscripts/mysql.sql"; echo "Database tables Created for: ${DB_GOV}" - mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_USER_STORE} -h${DB_HOST} -e "SOURCE ${WSO2_OB_APIM_HOME}/dbscripts/mysql.sql"; + mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_USER_STORE} -h${DB_HOST} -e "SOURCE ${WSO2_APIM_HOME}/dbscripts/mysql.sql"; echo "Database tables Created for: ${DB_USER_STORE}" }; add_json_fault_sequence() { - sed -i -e 's||\t\n|g' ${WSO2_OB_APIM_HOME}/repository/deployment/server/synapse-configs/default/sequences/_cors_request_handler_.xml + sed -i -e 's||\t\n|g' ${WSO2_APIM_HOME}/repository/deployment/server/synapse-configs/default/sequences/_cors_request_handler_.xml } echo -e "\nReplace hostnames \n" echo -e "================================================\n" sed -i -e 's|APIM_HOSTNAME|'${APIM_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|IS_HOSTNAME|'${IS_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} -sed -i -e 's|BI_HOSTNAME|'${BI_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} echo -e "\nConfigure datasources \n" echo -e "================================================\n" @@ -153,7 +152,7 @@ create_databases; echo -e "\nCopy deployment.toml file to repository/conf \n" echo -e "================================================\n" -cp ${DEPLOYMENT_TOML_FILE} ${WSO2_OB_APIM_HOME}/repository/conf/ +cp ${DEPLOYMENT_TOML_FILE} ${WSO2_APIM_HOME}/repository/conf/ rm ${DEPLOYMENT_TOML_FILE} rm -f ${DEPLOYMENT_TOML_FILE}-e diff --git a/financial-services-accelerator/accelerators/fs-apim/bin/merge.ps1 b/financial-services-accelerator/accelerators/fs-apim/bin/merge.ps1 index d49d9dc0..99d2e8f0 100644 --- a/financial-services-accelerator/accelerators/fs-apim/bin/merge.ps1 +++ b/financial-services-accelerator/accelerators/fs-apim/bin/merge.ps1 @@ -43,12 +43,12 @@ Function Exit-Clean { # Get the root directory location of the accelerator. Which is // Set-Location (Join-Path $PSScriptRoot ".\..\") -$WSO2_OB_ACCELERATOR_HOME = (Get-Location).path -Write-Output "[INFO] Accelerator Home : $WSO2_OB_ACCELERATOR_HOME" +$WSO2_FS_ACCELERATOR_HOME = (Get-Location).path +Write-Output "[INFO] Accelerator Home : $WSO2_FS_ACCELERATOR_HOME" # Get the root directory of the base product. if ($null -eq $WSO2_BASE_PRODUCT_HOME) { - Set-Location (Join-Path $WSO2_OB_ACCELERATOR_HOME ".\..\") + Set-Location (Join-Path $WSO2_FS_ACCELERATOR_HOME ".\..\") $WSO2_BASE_PRODUCT_HOME = (Get-Location).path } Write-Output "[INFO] Base Product Home : $WSO2_BASE_PRODUCT_HOME" @@ -65,17 +65,17 @@ if (-NOT(Test-Path (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components"))) } # Remove old open-banking artifacts -Write-Output "[INFO] Removing old open-banking artifacts..." -Get-ChildItem (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components\dropins") | Where-Object{$_.Name -Match "com.wso2.openbanking.accelerator.*"} | Remove-Item -Get-ChildItem (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components\lib") | Where-Object{$_.Name -Match "com.wso2.openbanking.accelerator.*"} | Remove-Item -Write-Output "[INFO] All previous OB artifacts have been deleted!" +Write-Output "[INFO] Removing old financial services artifacts..." +Get-ChildItem (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components\dropins") | Where-Object{$_.Name -Match "org.wso2.financial.services.accelerator.*"} | Remove-Item +Get-ChildItem (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components\lib") | Where-Object{$_.Name -Match "org.wso2.financial.services.accelerator.*"} | Remove-Item +Write-Output "[INFO] All previous FS artifacts have been deleted!" -# Copying all the new OB artifacts to the base product -# Copy-Item -Force -Recurse -Verbose (Join-Path $WSO2_OB_ACCELERATOR_HOME "carbon-home\*") -Destination $WSO2_BASE_PRODUCT_HOME +# Copying all the new FS artifacts to the base product +# Copy-Item -Force -Recurse -Verbose (Join-Path $WSO2_FS_ACCELERATOR_HOME "carbon-home\*") -Destination $WSO2_BASE_PRODUCT_HOME # Using Robocopy.exe becuase powershell Copy-Item cmdlet doesn't do recursive copying after a certain number of subdirectories. -Write-Output "[INFO] Copying new open-banking artifacts..." -Robocopy.exe (Join-Path $WSO2_OB_ACCELERATOR_HOME "carbon-home") $WSO2_BASE_PRODUCT_HOME * /E /NFL /NDL /NJH /NJS /nc /ns /np -Write-Output "[INFO] All the new OB artifacts has been copied!" +Write-Output "[INFO] Copying new financial services artifacts..." +Robocopy.exe (Join-Path $WSO2_FS_ACCELERATOR_HOME "carbon-home") $WSO2_BASE_PRODUCT_HOME * /E /NFL /NDL /NJH /NJS /nc /ns /np +Write-Output "[INFO] All the new FS artifacts has been copied!" Write-Output "[INFO] Completed!" diff --git a/financial-services-accelerator/accelerators/fs-apim/bin/merge.sh b/financial-services-accelerator/accelerators/fs-apim/bin/merge.sh index c44f298b..8ab67628 100755 --- a/financial-services-accelerator/accelerators/fs-apim/bin/merge.sh +++ b/financial-services-accelerator/accelerators/fs-apim/bin/merge.sh @@ -15,11 +15,11 @@ # specific language governing permissions and limitations # under the License. -# merge.sh script copy the WSO2 OB APIM accelerator artifacts on top of WSO2 APIM base product +# merge.sh script copy the WSO2 FS APIM accelerator artifacts on top of WSO2 APIM base product # -# merge.sh +# merge.sh -WSO2_OB_APIM_HOME=$1 +WSO2_APIM_HOME=$1 # set accelerator home cd ../ @@ -27,15 +27,15 @@ ACCELERATOR_HOME=$(pwd) echo "Accelerator home is: ${ACCELERATOR_HOME}" # set product home -if [ "${WSO2_OB_APIM_HOME}" == "" ]; +if [ "${WSO2_APIM_HOME}" == "" ]; then cd ../ - WSO2_OB_APIM_HOME=$(pwd) - echo "Product home is: ${WSO2_OB_APIM_HOME}" + WSO2_APIM_HOME=$(pwd) + echo "Product home is: ${WSO2_APIM_HOME}" fi # validate product home -if [ ! -d "${WSO2_OB_APIM_HOME}/repository/components" ]; then +if [ ! -d "${WSO2_APIM_HOME}/repository/components" ]; then echo -e "\n\aERROR:specified product path is not a valid carbon product path\n"; exit 2; else @@ -44,5 +44,5 @@ fi echo -e "\nCopying open banking artifacts\n" echo -e "================================================\n" -cp -r ${ACCELERATOR_HOME}/carbon-home/* "${WSO2_OB_APIM_HOME}"/ +cp -r ${ACCELERATOR_HOME}/carbon-home/* "${WSO2_APIM_HOME}"/ echo -e "\nComplete!\n" diff --git a/financial-services-accelerator/accelerators/fs-apim/carbon-home/repository/conf/financial-services.xml b/financial-services-accelerator/accelerators/fs-apim/carbon-home/repository/conf/financial-services.xml index 11fbbf2d..b40fab63 100644 --- a/financial-services-accelerator/accelerators/fs-apim/carbon-home/repository/conf/financial-services.xml +++ b/financial-services-accelerator/accelerators/fs-apim/carbon-home/repository/conf/financial-services.xml @@ -18,14 +18,18 @@ --> + + + 60 + 60 + + - com.wso2.openbanking.accelerator.gateway.executor.core.DefaultRequestRouter - - com.wso2.openbanking.sample.throttling.publisher.SampleThrottlingDataPublisher - + org.wso2.financial.services.accelerator.gateway.executor.core.DefaultRequestRouter + - - https://localhost:9446/api/openbanking/consent/validate + + https://localhost:9446/api/fs/consent/validate 60 @@ -34,66 +38,6 @@ https://localhost:9443 - - false - - - true - admin - admin - {tcp://localhost:7612} - - - Thrift - 10 - 32768 - 10 - 60000 - - 2000 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - api/am/devportal/v2/applications - api/am/devportal/v2/applications/application-id/map-keys - api/am/devportal/v2/apis - api/am/devportal/v2/subscriptions/multiple - - https://localhost:9446/oauth2/token - - - - jwks_uri - - 0 - 0 - - 2000 1500 diff --git a/financial-services-accelerator/accelerators/fs-apim/carbon-home/repository/resources/conf/templates/repository/conf/financial-services.xml.j2 b/financial-services-accelerator/accelerators/fs-apim/carbon-home/repository/resources/conf/templates/repository/conf/financial-services.xml.j2 index 7038429d..ccaf14d6 100644 --- a/financial-services-accelerator/accelerators/fs-apim/carbon-home/repository/resources/conf/templates/repository/conf/financial-services.xml.j2 +++ b/financial-services-accelerator/accelerators/fs-apim/carbon-home/repository/resources/conf/templates/repository/conf/financial-services.xml.j2 @@ -19,551 +19,61 @@ - - - {% if open_banking.common.identity.cache.cache_access_expiry_minutes is defined %} - {{open_banking.common.identity.cache.cache_access_expiry_minutes}} - {% else %} - 60 - {% endif %} - {% if open_banking.common.identity.cache.cache_modified_expiry_minutes is defined %} - {{open_banking.common.identity.cache.cache_modified_expiry_minutes}} - {% else %} - 60 - {% endif %} - - + + {% if financial_services.common.cache.cache_access_expiry_minutes is defined %} + {{financial_services.common.cache.cache_access_expiry_minutes}} + {% else %} + 60 + {% endif %} + {% if financial_services.common.cache.cache_modified_expiry_minutes is defined %} + {{financial_services.common.cache.cache_modified_expiry_minutes}} + {% else %} + 60 + {% endif %} + - {% if open_banking.gateway.request_router is defined %} - {{open_banking.gateway.request_router}} + {% if financial_services.gateway.request_router is defined %} + {{financial_services.gateway.request_router}} {% else %} - com.wso2.openbanking.accelerator.gateway.executor.core.DefaultRequestRouter - {% endif %} - {% if open_banking.gateway.throttling.throttling_data_publisher is defined %} - {{open_banking.gateway.throttling.throttling_data_publisher}} + org.wso2.financial.services.accelerator.gateway.executor.core.DefaultRequestRouter {% endif %} - - {% for type in open_banking.gateway.openbanking_gateway_executors.type %} + + {% for type in financial_services.gateway.openbanking_gateway_executors.type %} <{{type.name}}> {% for executor in type.executors %} {% endfor %} {% endfor %} - - {% if open_banking.gateway.consent.validation.endpoint is defined %} - {{open_banking.gateway.consent.validation.endpoint}} + + {% if financial_services.gateway.consent.validation.endpoint is defined %} + {{financial_services.gateway.consent.validation.endpoint}} {% else %} - https://localhost:9446/api/openbanking/consent/validate + https://localhost:9446/api/fs/consent/validate {% endif %} - {% if open_banking.gateway.cache.cache_access_expiry_minutes is defined %} - {{open_banking.gateway.cache.cache_access_expiry_minutes}} + {% if financial_services.gateway.cache.cache_access_expiry_minutes is defined %} + {{financial_services.gateway.cache.cache_access_expiry_minutes}} {% endif %} - {% if open_banking.gateway.cache.cache_modified_expiry_minutes is defined %} - {{open_banking.gateway.cache.cache_modified_expiry_minutes}} + {% if financial_services.gateway.cache.cache_modified_expiry_minutes is defined %} + {{financial_services.gateway.cache.cache_modified_expiry_minutes}} {% endif %} - - - - - {% if open_banking.gateway.certificate_management.certificate.cache_expiry is defined %} - {{open_banking.gateway.certificate_management.certificate.cache_expiry}} - {% else %} - 3600 - {% endif %} - - - {% if open_banking.gateway.certificate_management.certificate.revocation.enabled is defined %} - {{open_banking.gateway.certificate_management.certificate.revocation.enabled}} - {% else %} - true - {% endif %} - - - {% if open_banking.gateway.certificate_management.certificate.issuer.validation.enabled is defined %} - {{open_banking.gateway.certificate_management.certificate.issuer.validation.enabled}} - {% else %} - true - {% endif %} - - - - {% if open_banking.gateway.certificate_management.certificate.revocation.proxy.enabled is defined %} - {{open_banking.gateway.certificate_management.certificate.revocation.proxy.enabled}} - {% else %} - false - {% endif %} - - {% if open_banking.gateway.certificate_management.certificate.revocation.proxy.host is defined %} - {{open_banking.gateway.certificate_management.certificate.revocation.proxy.host}} - {% else %} - PROXY_HOSTNAME - {% endif %} - - {% if open_banking.gateway.certificate_management.certificate.revocation.proxy.port is defined %} - {{open_banking.gateway.certificate_management.certificate.revocation.proxy.port}} - {% else %} - 8080 - {% endif %} - - - - - {% for validator in open_banking.gateway.certificate_management.certificate.revocation.validator %} - - {% endfor %} - - - - {% if open_banking.gateway.certificate_management.certificate.revocation.retry_count is defined %} - {{open_banking.gateway.certificate_management.certificate.revocation.retry_count}} - {% else %} - 3 - {% endif %} - - - {% if open_banking.gateway.certificate_management.certificate.revocation.connect_timeout is defined %} - {{open_banking.gateway.certificate_management.certificate.revocation.connect_timeout}} - {% else %} - 10000 - {% endif %} - - - {% if open_banking.gateway.certificate_management.certificate.revocation.connection_request_timeout is defined %} - {{open_banking.gateway.certificate_management.certificate.revocation.connection_request_timeout}} - {% else %} - 10000 - {% endif %} - - - {% if open_banking.gateway.certificate_management.certificate.revocation.socket_timeout is defined %} - {{open_banking.gateway.certificate_management.certificate.revocation.socket_timeout}} - {% else %} - 10000 - {% endif %} - - - - {% for excluded in open_banking.gateway.certificate_management.certificate.revocation.excluded %} - {{excluded.issuer_dn}} - {% endfor %} - - - - {% if open_banking.gateway.certificate_management.truststore.dynamic_loading_interval is defined %} - {{open_banking.gateway.certificate_management.truststore.dynamic_loading_interval}} - {% else %} - 86400 - {% endif %} - {% if open_banking.gateway.certificate_management.client_transport_cert_header_name is defined %} - {{open_banking.gateway.certificate_management.client_transport_cert_header_name}} - {% else %} - x-wso2-mutual-auth-cert - {% endif %} - {% if open_banking.gateway.certificate_management.url_encode_client_transport_cert_header_enabled is defined %} - {{open_banking.gateway.certificate_management.url_encode_client_transport_cert_header_enabled}} - {% else %} - true - {% endif %} - - - - - - - {% if open_banking.gateway.tpp_management.tpp_validation.cache_expiry is defined %} - {{open_banking.gateway.tpp_management.tpp_validation.cache_expiry}} - {% else %} - 3600 - {% endif %} - - {% if open_banking.gateway.tpp_management.tpp_validation.enabled is defined %} - {{open_banking.gateway.tpp_management.tpp_validation.enabled}} - {% else %} - false - {% endif %} - - {% if open_banking.gateway.tpp_management.tpp_validation.implementation_path is defined %} - {{open_banking.gateway.tpp_management.tpp_validation.implementation_path}} - {% else %} - path.to.impl.class - {% endif %} - - - - {% if open_banking.gateway.tpp_management.psd2_role_validation.enabled is defined %} - {{open_banking.gateway.tpp_management.psd2_role_validation.enabled}} - {% else %} - true - {% endif %} - - - - {% for scope in open_banking.gateway.tpp_management.allowed_scopes %} - - {% endfor %} - - - - - - {% if open_banking.dcr.apim_rest_endpoints.app_creation is defined %} - {{open_banking.dcr.apim_rest_endpoints.app_creation}} - {% else %} - api/am/devportal/v2/applications - {% endif %} - {% if open_banking.dcr.apim_rest_endpoints.key_generation is defined %} - {{open_banking.dcr.apim_rest_endpoints.key_generation}} - {% else %} - api/am/devportal/v2/applications/application-id/map-keys - {% endif %} - {% if open_banking.dcr.apim_rest_endpoints.api_retrieve is defined %} - {{open_banking.dcr.apim_rest_endpoints.api_retrieve}} - {% else %} - api/am/devportal/v2/apis - {% endif %} - {% if open_banking.dcr.apim_rest_endpoints.api_subscribe is defined %} - {{open_banking.dcr.apim_rest_endpoints.api_subscribe}} - {% else %} - api/am/devportal/v2/subscriptions/multiple - {% endif %} - {% if open_banking.dcr.apim_rest_endpoints.retrieve_subscribe is defined %} - {{open_banking.dcr.apim_rest_endpoints.retrieve_subscribe}} - {% else %} - api/am/devportal/v2/subscriptions - {% endif %} - - - {% for api in open_banking.dcr.regulatory_api %} - - {% endfor %} - - {% if open_banking.dcr.jwks_endpoint_name is defined %} - {{open_banking.dcr.jwks_endpoint_name}} - {% else %} - software_jwks_endpoint - {% endif %} - {% if open_banking.dcr.app_name_claim is defined %} - {{open_banking.dcr.app_name_claim}} - {% else %} - software_client_name - {% endif %} - {% if open_banking.dcr.token_endpoint is defined %} - {{open_banking.dcr.token_endpoint}} - {% else %} - https://localhost:9443/oauth2/token - {% endif %} - - {% if open_banking.dcr.jwks_retriever.connection_timeout is defined %} - {{open_banking.dcr.jwks_retriever.connection_timeout}} - {% else %} - 0 - {% endif %} - {% if open_banking.dcr.jwks_retriever.read_timeout is defined %} - {{open_banking.dcr.jwks_retriever.read_timeout}} - {% else %} - 0 - {% endif %} - - {% if open_banking.dcr.use_softwareIdForAppName is defined %} - {{open_banking.dcr.use_softwareIdForAppName}} - {% else %} - true - {% endif %} - {% if open_banking.dcr.isRequestJWT is defined %} - {{open_banking.dcr.isRequestJWT}} - {% else %} - true - {% endif %} - - - {% if open_banking.dcr.registration.software_environment_identification.ssa_property_name is defined %} - {{open_banking.dcr.registration.software_environment_identification.ssa_property_name}} - {% else %} - software_environment - {% endif %} - {% if open_banking.dcr.registration.software_environment_identification.ssa_property_value_for_sandbox is defined %} - {{open_banking.dcr.registration.software_environment_identification.ssa_property_value_for_sandbox}} - {% else %} - sandbox - {% endif %} - {% if open_banking.dcr.registration.software_environment_identification.ssa_property_value_for_production is defined %} - {{open_banking.dcr.registration.software_environment_identification.ssa_property_value_for_production}} - {% else %} - production - {% endif %} - - - - {{open_banking.keyManager.name}} - {% if open_banking.publisher.hostname is defined %} - {{open_banking.publisher.hostname}} + {% if financial_services.publisher_url is defined %} + {{financial_services.publisher_url}} {% else %} https://localhost:9443 {% endif %} - - {% if open_banking.apim.analytics.enable is defined %} - {{open_banking.apim.analytics.enable}} - {% else %} - false - {% endif %} - - - {% if open_banking.analytics.elk is defined %} - {{open_banking.analytics.elk.enabled}} - {% else %} - false - {% endif %} - - - {% if open_banking.data_publishing.enable is defined %} - {{open_banking.data_publishing.enable}} - {% else %} - false - {% endif %} - - {% if open_banking.data_publishing.username is defined %} - {{open_banking.data_publishing.username}} - {% else %} - admin@wso2.com@carbon.super - {% endif %} - - {% if open_banking.data_publishing.password is defined %} - {{open_banking.data_publishing.password}} - {% else %} - wso2123 - {% endif %} - - {% if open_banking.data_publishing.server_url is defined %} - {{open_banking.data_publishing.server_url}} - {% else %} - {tcp://ANALYTICS_HOSTNAME:7612} - {% endif %} - {% if open_banking.data_publishing.auth_url is defined %} - {{open_banking.data_publishing.auth_url}} - {% endif %} - - {% if open_banking.data_publishing.protocol is defined %} - {{open_banking.data_publishing.protocol}} - {% else %} - Thrift - {% endif %} - {% if open_banking.data_publishing.pool_size is defined %} - {{open_banking.data_publishing.pool_size}} - {% else %} - 10 - {% endif %} - {% if open_banking.data_publishing.queue_size is defined %} - {{open_banking.data_publishing.queue_size}} - {% else %} - 32768 - {% endif %} - {% if open_banking.data_publishing.worker_thread_count is defined %} - {{open_banking.data_publishing.worker_thread_count}} - {% else %} - 10 - {% endif %} - {% if open_banking.data_publishing.pool_wait_time_Ms is defined %} - {{open_banking.data_publishing.pool_wait_time_Ms}} - {% else %} - 60000 - {% endif %} - - {% if open_banking.data_publishing.protocol == "Thrift" or open_banking.data_publishing.protocol is not defined%} - - {% if open_banking.data_publishing.thrift.publishing_timeout is defined %} - {{open_banking.data_publishing.thrift.publishing_timeout}} - {% else %} - 2000 - {% endif %} - - {% for stream in open_banking.data_publishing.thrift.stream %} - <{{stream.name}}> - {% for attribute in stream.attributes %} - {% if attribute.required is defined %} - {% set required = "{{attribute.required}}" %} - {% else %} - {% set required = "false" %} - {% endif %} - {% if attribute.type is defined %} - {% set type = "{{attribute.type}}" %} - {% else %} - {% set type = "string" %} - {% endif %} - - {% endfor %} - - {% endfor %} - - - {% endif %} - - {% if open_banking.data_publishing.dispute_resolution.enable is defined %} - {{open_banking.data_publishing.dispute_resolution.enable}} - {% else %} - false - {% endif %} - {% if open_banking.data_publishing.dispute_resolution.publishNonErrorDisputeResolutionData is defined %} - {{open_banking.data_publishing.dispute_resolution.publishNonErrorDisputeResolutionData}} - {% else %} - false - {% endif %} - {% if open_banking.data_publishing.dispute_resolution.maxRequestBodyLength is defined %} - {{open_banking.data_publishing.dispute_resolution.maxRequestBodyLength}} - {% else %} - 4096 - {% endif %} - {% if open_banking.data_publishing.dispute_resolution.maxResponseBodyLength is defined %} - {{open_banking.data_publishing.dispute_resolution.maxResponseBodyLength}} - {% else %} - 4096 - {% endif %} - {% if open_banking.data_publishing.dispute_resolution.maxHeaderLength is defined %} - {{open_banking.data_publishing.dispute_resolution.maxHeaderLength}} - {% else %} - 2048 - {% endif %} - - - - {% if open_banking.identity.consent_id_claim_name is defined %} - {{open_banking.identity.consent_id_claim_name}} - {% else %} - consent_id - {% endif %} - - {% if open_banking.http_connection_pool.max_connections is defined %} - {{open_banking.http_connection_pool.max_connections}} + {% if financial_services.http_connection_pool.max_connections is defined %} + {{financial_services.http_connection_pool.max_connections}} {% endif %} - {% if open_banking.http_connection_pool.max_connections_per_route is defined %} - {{open_banking.http_connection_pool.max_connections_per_route}} + {% if financial_services.http_connection_pool.max_connections_per_route is defined %} + {{financial_services.http_connection_pool.max_connections_per_route}} {% endif %} - - {% if open_banking.event.queue_size is defined %} - {{open_banking.event.queue_size}} - {% else %} - 32768 - {% endif %} - {% if open_banking.event.worker_thread_count is defined %} - {{open_banking.event.worker_thread_count}} - {% else %} - 10 - {% endif %} - - {% if open_banking.event.event_executors is defined %} - {% for executor in open_banking.event.event_executors %} - - {% endfor %} - {% else %} - {% if open_banking.event.event_executor is defined %} - - {% else %} - - {% endif %} - {% endif %} - - - - {% if open_banking.keymanager.extension.impl is defined %} - {{open_banking.keymanager.extension.impl.class}} - {% endif %} - - {% if open_banking.keymanager.application.type.attributes is defined %} - {% for attribute in open_banking.keymanager.application.type.attributes %} - - {% endfor %} - {% endif %} - - - - - - - {% if open_banking.jws_signature.signature_validation.enabled is defined %} - {{open_banking.jws_signature.signature_validation.enabled}} - {% else %} - false - {% endif %} - - {% if open_banking.jws_signature.signature_validation.allowed_algorithms is defined %} - {% for algorithm in open_banking.jws_signature.signature_validation.allowed_algorithms %} - {{algorithm}} - {% endfor %} - {% else %} - PS256 - {% endif %} - - - - - {% if open_banking.jws_signature.response_signing.enabled is defined %} - {{open_banking.jws_signature.response_signing.enabled}} - {% else %} - false - {% endif %} - {% if open_banking.jws_signature.response_signing.allowed_algorithm is defined %} - {{open_banking.jws_signature.response_signing.allowed_algorithm}} - {% else %} - PS256 - {% endif %} - - - - - - - {% if open_banking.ob_identity_retriever.server.signing_cert_alias is defined %} - {{open_banking.ob_identity_retriever.server.signing_cert_alias}} - {% else %} - wso2carbon - {% endif %} - - {% if open_banking.ob_identity_retriever.server.sandbox_signing_cert_alias is defined %} - {{open_banking.ob_identity_retriever.server.sandbox_signing_cert_alias}} - {% else %} - wso2carbon-sandbox - {% endif %} - - {% if open_banking.ob_identity_retriever.server.signing_cert_kid is defined %} - {{open_banking.ob_identity_retriever.server.signing_cert_kid}} - {% else %} - 1234 - {% endif %} - - {% if open_banking.ob_identity_retriever.server.sandbox_signing_cert_kid is defined %} - {{open_banking.ob_identity_retriever.server.sandbox_signing_cert_kid}} - {% else %} - 5678 - {% endif %} - - - {% if open_banking.ob_identity_retriever.jwks_retriever.size_limit is defined %} - {{open_banking.ob_identity_retriever.jwks_retriever.size_limit}} - {% else %} - 51200 - {% endif %} - {% if open_banking.ob_identity_retriever.jwks_retriever.connection_timeout is defined %} - {{open_banking.ob_identity_retriever.jwks_retriever.connection_timeout}} - {% else %} - 2000 - {% endif %} - {% if open_banking.ob_identity_retriever.jwks_retriever.read_timeout is defined %} - {{open_banking.ob_identity_retriever.jwks_retriever.read_timeout}} - {% else %} - 2000 - {% endif %} - - diff --git a/financial-services-accelerator/accelerators/fs-apim/pom.xml b/financial-services-accelerator/accelerators/fs-apim/pom.xml index 637aa483..47dc76e1 100644 --- a/financial-services-accelerator/accelerators/fs-apim/pom.xml +++ b/financial-services-accelerator/accelerators/fs-apim/pom.xml @@ -29,7 +29,7 @@ ../pom.xml - wso2-financial-services-am-accelerator + wso2-fsam-accelerator pom WSO2 Financial Services - API Manager Accelerator Module http://wso2.org @@ -41,8 +41,9 @@ + org.apache.maven.plugins maven-clean-plugin - 3.1.0 + ${maven.clean.plugin.version} @@ -72,7 +73,7 @@ org.apache.maven.plugins maven-antrun-plugin - 1.8 + ${maven.antrun.plugin.version} create-solution @@ -94,27 +95,6 @@ regex="org.wso2.financial.services.accelerator.gateway-(\d.*?)\.jar$"/> - - - - - - - - - - - - - - - @@ -145,5 +125,4 @@ - diff --git a/financial-services-accelerator/accelerators/fs-apim/repository/conf/configure.properties b/financial-services-accelerator/accelerators/fs-apim/repository/conf/configure.properties index 7a75ed4c..4ff00a89 100644 --- a/financial-services-accelerator/accelerators/fs-apim/repository/conf/configure.properties +++ b/financial-services-accelerator/accelerators/fs-apim/repository/conf/configure.properties @@ -30,12 +30,10 @@ DB_PASS=root DB_HOST=localhost DB_DRIVER=com.mysql.jdbc.Driver -DB_APIMGT=openbank_apimgtdb -DB_USER_STORE=openbank_userdb -DB_AM_CONFIG=openbank_am_configdb -DB_GOV=openbank_govdb -DB_IS_CONFIG=openbank_iskm_configdb -DB_OPEN_BANKING_STORE=openbank_openbankingdb -DB_OB_REPORTING=openbank_ob_reporting_statsdb -DB_OB_REPORTING_SUMMARIZED=openbank_ob_reporting_summarizeddb +DB_APIMGT=fs_apimgtdb +DB_USER_STORE=fs_userdb +DB_AM_CONFIG=fs_am_configdb +DB_GOV=fs_govdb +DB_IS_CONFIG=fs_iskm_configdb +DB_FS_STORE=fs_consentdb diff --git a/financial-services-accelerator/accelerators/fs-is/README.md b/financial-services-accelerator/accelerators/fs-is/README.md index db3008f2..5938970f 100644 --- a/financial-services-accelerator/accelerators/fs-is/README.md +++ b/financial-services-accelerator/accelerators/fs-is/README.md @@ -1,25 +1,25 @@ -### **WSO2 Open Banking IS Accelerator 3.0.0** +### **WSO2 Financial Services IS Accelerator 4.0.0** **Try Locally:** Prerequisites: 1. Download WSO2 Identity Server product 2. Build the repository completely using the below command to create accelerator zip files. - mvn clean install -PSolution -3. Locate the Accelerator Zip file (wso2-obiam-accelerator-3.0.0.zip) from + mvn clean install -P Solution +3. Locate the Accelerator Zip file (wso2-fsiam-accelerator-4.0.0.zip) from the target folder in this directory 4. Setup MySQL database server 5. Install Java on your local machine -Below are the simplified steps to install the WSO2 Open Banking Accelerator. For more information, +Below are the simplified steps to install the WSO2 Financial Services Accelerator. For more information, please refer to [Quick Start Guide](https://ob.docs.wso2.com/en/latest/get-started/quick-start-guide/) or to [ Complete install and Setup Guide ](https://ob.docs.wso2.com/en/latest/install-and-setup/) Steps: 1. Extract the Base product (WSO2 Identity Server product) to a preferred location () -2. Extract WSO2 OB IAM Accelerator (wso2-obiam-accelerator-3.0.0.zip) to WSO2_IS_HOME -3. Run /bin/merge.sh. This will copy the artifacts to the WSO2 IS -4. Run /bin/configure.sh. This will configure the server and create databases and tables. +2. Extract WSO2 FS IAM Accelerator (wso2-fsiam-accelerator-4.0.0.zip) to WSO2_IS_HOME +3. Run /bin/merge.sh. This will copy the artifacts to the WSO2 IS +4. Run /bin/configure.sh. This will configure the server and create databases and tables. 5. Run /bin/wso2server.sh to start the server diff --git a/financial-services-accelerator/accelerators/fs-is/bin/configure.sh b/financial-services-accelerator/accelerators/fs-is/bin/configure.sh index ed6b8b05..920099bd 100755 --- a/financial-services-accelerator/accelerators/fs-is/bin/configure.sh +++ b/financial-services-accelerator/accelerators/fs-is/bin/configure.sh @@ -16,10 +16,10 @@ # under the License. # command to execute -# ./configure.sh +# ./configure.sh source $(pwd)/../repository/conf/configure.properties -WSO2_OB_IS_HOME=$1 +WSO2_IS_HOME=$1 # set accelerator home cd ../ @@ -27,15 +27,15 @@ ACCELERATOR_HOME=$(pwd) echo "Accelerator Home: ${ACCELERATOR_HOME}" # set product home -if [ "${WSO2_OB_IS_HOME}" == "" ] +if [ "${WSO2_IS_HOME}" == "" ] then cd ../ - WSO2_OB_IS_HOME=$(pwd) - echo "Product Home: ${WSO2_OB_IS_HOME}" + WSO2_IS_HOME=$(pwd) + echo "Product Home: ${WSO2_IS_HOME}" fi # validate product home -if [ ! -d "${WSO2_OB_IS_HOME}/repository/components" ]; then +if [ ! -d "${WSO2_IS_HOME}/repository/components" ]; then echo -e "\n\aERROR:specified product path is not a valid carbon product path\n"; exit 2; else @@ -54,7 +54,7 @@ configure_datasources() { sed -i -e 's|DB_IS_CONFIG_URL|jdbc:mysql://'${DB_HOST}':3306/'${DB_IS_CONFIG}'?autoReconnect=true\&useSSL=false|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_GOV_URL|jdbc:mysql://'${DB_HOST}':3306/'${DB_GOV}'?autoReconnect=true\&useSSL=false|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_USER_STORE_URL|jdbc:mysql://'${DB_HOST}':3306/'${DB_USER_STORE}'?autoReconnect=true\&useSSL=false|g' ${DEPLOYMENT_TOML_FILE} - sed -i -e 's|DB_OB_STORE_URL|jdbc:mysql://'${DB_HOST}':3306/'${DB_OPEN_BANKING_STORE}'?autoReconnect=true\&useSSL=false|g' ${DEPLOYMENT_TOML_FILE} + sed -i -e 's|DB_FS_STORE_URL|jdbc:mysql://'${DB_HOST}':3306/'${DB_FS_STORE}'?autoReconnect=true\&useSSL=false|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_USER|'${DB_USER}'|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_PASS|'${DB_PASS}'|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_DRIVER|'${DB_DRIVER}'|g' ${DEPLOYMENT_TOML_FILE} @@ -65,7 +65,7 @@ configure_datasources() { sed -i -e 's|DB_IS_CONFIG_URL|jdbc:sqlserver://'${DB_HOST}':1433;databaseName='${DB_IS_CONFIG}';encrypt=false|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_GOV_URL|jdbc:sqlserver://'${DB_HOST}':1433;databaseName='${DB_GOV}';encrypt=false|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_USER_STORE_URL|jdbc:sqlserver://'${DB_HOST}':1433;databaseName='${DB_USER_STORE}';encrypt=false|g' ${DEPLOYMENT_TOML_FILE} - sed -i -e 's|DB_OB_STORE_URL|jdbc:sqlserver://'${DB_HOST}':1433;databaseName='${DB_OPEN_BANKING_STORE}';encrypt=false|g' ${DEPLOYMENT_TOML_FILE} + sed -i -e 's|DB_FS_STORE_URL|jdbc:sqlserver://'${DB_HOST}':1433;databaseName='${DB_FS_STORE}';encrypt=false|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_USER|'${DB_USER}'|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_PASS|'${DB_PASS}'|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|DB_DRIVER|'${DB_DRIVER}'|g' ${DEPLOYMENT_TOML_FILE} @@ -98,30 +98,29 @@ create_mysql_databases() { mysql -u${DB_USER} ${DB_MYSQL_PASS} -h${DB_HOST} -e "DROP DATABASE IF EXISTS ${DB_IS_CONFIG}; CREATE DATABASE ${DB_IS_CONFIG}; ALTER DATABASE ${DB_IS_CONFIG} CHARACTER SET latin1 COLLATE latin1_swedish_ci"; echo "Database Created: ${DB_IS_CONFIG}" - mysql -u${DB_USER} ${DB_MYSQL_PASS} -h${DB_HOST} -e "DROP DATABASE IF EXISTS ${DB_OPEN_BANKING_STORE}; CREATE DATABASE ${DB_OPEN_BANKING_STORE}; - ALTER DATABASE ${DB_OPEN_BANKING_STORE} CHARACTER SET latin1 COLLATE latin1_swedish_ci"; - echo "Database Created: ${DB_OPEN_BANKING_STORE}" + mysql -u${DB_USER} ${DB_MYSQL_PASS} -h${DB_HOST} -e "DROP DATABASE IF EXISTS ${DB_FS_STORE}; CREATE DATABASE ${DB_FS_STORE}; + ALTER DATABASE ${DB_FS_STORE} CHARACTER SET latin1 COLLATE latin1_swedish_ci"; + echo "Database Created: ${DB_FS_STORE}" }; create_mysql_database_tables() { - mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_IS_CONFIG} -h${DB_HOST} -e "SOURCE ${WSO2_OB_IS_HOME}/dbscripts/mysql.sql"; + mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_IS_CONFIG} -h${DB_HOST} -e "SOURCE ${WSO2_IS_HOME}/dbscripts/mysql.sql"; echo "Database tables Created for: ${DB_IS_CONFIG}" - mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_OPEN_BANKING_STORE} -h${DB_HOST} -e "SOURCE ${WSO2_OB_IS_HOME}/dbscripts/open-banking/consent/mysql.sql"; - echo "Database tables Created for: ${DB_OPEN_BANKING_STORE}" + mysql -u${DB_USER} ${DB_MYSQL_PASS} -D${DB_FS_STORE} -h${DB_HOST} -e "SOURCE ${WSO2_IS_HOME}/dbscripts/financial-services/consent/mysql.sql"; + echo "Database tables Created for: ${DB_FS_STORE}" }; configure_iskm_connector() { wget https://apim.docs.wso2.com/en/3.2.0/assets/attachments/administer/${ISKM_CONNECTOR}.zip unzip "${ISKM_CONNECTOR}.zip" - cp ${ISKM_CONNECTOR_FOLDER}/dropins/* ${WSO2_OB_IS_HOME}/repository/components/dropins/ - cp ${ISKM_CONNECTOR_FOLDER}/webapps/* ${WSO2_OB_IS_HOME}/repository/deployment/server/webapps + cp ${ISKM_CONNECTOR_FOLDER}/dropins/* ${WSO2_IS_HOME}/repository/components/dropins/ + cp ${ISKM_CONNECTOR_FOLDER}/webapps/* ${WSO2_IS_HOME}/repository/deployment/server/webapps }; echo -e "\nReplace hostnames \n" echo -e "================================================\n" sed -i -e 's|IS_HOSTNAME|'${IS_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} sed -i -e 's|APIM_HOSTNAME|'${APIM_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} -sed -i -e 's|BI_HOSTNAME|'${BI_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} echo -e "\nConfigure datasources \n" @@ -138,6 +137,6 @@ echo -e "================================================\n" echo -e "\nCopy deployment.toml file to repository/conf \n" echo -e "================================================\n" -cp ${DEPLOYMENT_TOML_FILE} ${WSO2_OB_IS_HOME}/repository/conf/ +cp ${DEPLOYMENT_TOML_FILE} ${WSO2_IS_HOME}/repository/conf/ rm ${DEPLOYMENT_TOML_FILE} rm -f ${DEPLOYMENT_TOML_FILE}-e diff --git a/financial-services-accelerator/accelerators/fs-is/bin/merge.ps1 b/financial-services-accelerator/accelerators/fs-is/bin/merge.ps1 index 38c7fe13..6502d6f2 100644 --- a/financial-services-accelerator/accelerators/fs-is/bin/merge.ps1 +++ b/financial-services-accelerator/accelerators/fs-is/bin/merge.ps1 @@ -43,12 +43,12 @@ Function Exit-Clean { # Get the root directory location of the accelerator. Which is // Set-Location (Join-Path $PSScriptRoot ".\..\") -$WSO2_OB_ACCELERATOR_HOME = (Get-Location).path -Write-Output "[INFO] Accelerator Home : $WSO2_OB_ACCELERATOR_HOME" +$WSO2_ACCELERATOR_HOME = (Get-Location).path +Write-Output "[INFO] Accelerator Home : $WSO2_ACCELERATOR_HOME" # Get the root directory of the base product. if ($null -eq $WSO2_BASE_PRODUCT_HOME) { - Set-Location (Join-Path $WSO2_OB_ACCELERATOR_HOME ".\..\") + Set-Location (Join-Path $WSO2_ACCELERATOR_HOME ".\..\") $WSO2_BASE_PRODUCT_HOME = (Get-Location).path } Write-Output "[INFO] Base Product Home : $WSO2_BASE_PRODUCT_HOME" @@ -65,17 +65,17 @@ if (-NOT(Test-Path (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components"))) } # Remove old open-banking artifacts -Write-Output "[INFO] Removing old open-banking artifacts..." -Get-ChildItem (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components\dropins") | Where-Object{$_.Name -Match "com.wso2.openbanking.accelerator.*"} | Remove-Item -Get-ChildItem (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components\lib") | Where-Object{$_.Name -Match "com.wso2.openbanking.accelerator.*"} | Remove-Item -Write-Output "[INFO] All previous OB artifacts have been deleted!" +Write-Output "[INFO] Removing old financial services artifacts..." +Get-ChildItem (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components\dropins") | Where-Object{$_.Name -Match "org.wso2.financial.services.accelerator.*"} | Remove-Item +Get-ChildItem (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components\lib") | Where-Object{$_.Name -Match "org.wso2.financial.services.accelerator.*"} | Remove-Item +Write-Output "[INFO] All previous FS artifacts have been deleted!" -# Copying all the new OB artifacts to the base product -# Copy-Item -Force -Recurse -Verbose (Join-Path $WSO2_OB_ACCELERATOR_HOME "carbon-home\*") -Destination $WSO2_BASE_PRODUCT_HOME +# Copying all the new FS artifacts to the base product +# Copy-Item -Force -Recurse -Verbose (Join-Path $WSO2_ACCELERATOR_HOME "carbon-home\*") -Destination $WSO2_BASE_PRODUCT_HOME # Using Robocopy.exe becuase powershell Copy-Item cmdlet doesn't do recursive copying after a certain number of subdirectories. -Write-Output "[INFO] Copying new open-banking artifacts..." -Robocopy.exe (Join-Path $WSO2_OB_ACCELERATOR_HOME "carbon-home") $WSO2_BASE_PRODUCT_HOME * /E /NFL /NDL /NJH /NJS /nc /ns /np -Write-Output "[INFO] All the new OB artifacts has been copied!" +Write-Output "[INFO] Copying new financial services artifacts..." +Robocopy.exe (Join-Path $WSO2_ACCELERATOR_HOME "carbon-home") $WSO2_BASE_PRODUCT_HOME * /E /NFL /NDL /NJH /NJS /nc /ns /np +Write-Output "[INFO] All the new FS artifacts has been copied!" $WEB_APPS_PATH = (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\deployment\server\webapps") @@ -118,8 +118,6 @@ if (Test-Path $CONSENTMGR_RUNTIME_JS_BACKUP_PATH -PathType Leaf) { Remove-Item -LiteralPath $CONSENTMGR_PATH_ZIP -Force -Get-ChildItem (Join-Path $WSO2_BASE_PRODUCT_HOME "repository\components\dropins") | Where-Object{$_.Name -Match "org.wso2.carbon.identity.application.authentication.handler.identifier-*"} | Remove-Item - Write-Output "[INFO] Completed!" Exit-Clean diff --git a/financial-services-accelerator/accelerators/fs-is/bin/merge.sh b/financial-services-accelerator/accelerators/fs-is/bin/merge.sh index 5145beb0..14606348 100755 --- a/financial-services-accelerator/accelerators/fs-is/bin/merge.sh +++ b/financial-services-accelerator/accelerators/fs-is/bin/merge.sh @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -WSO2_OB_IS_HOME=$1 +WSO2_IS_HOME=$1 # set accelerator home cd ../ @@ -23,15 +23,15 @@ ACCELERATOR_HOME=$(pwd) echo "Accelerator home is: ${ACCELERATOR_HOME}" # set product home -if [ "${WSO2_OB_IS_HOME}" == "" ]; +if [ "${WSO2_IS_HOME}" == "" ]; then cd ../ - WSO2_OB_IS_HOME=$(pwd) - echo "Product home is: ${WSO2_OB_IS_HOME}" + WSO2_IS_HOME=$(pwd) + echo "Product home is: ${WSO2_IS_HOME}" fi # validate product home -if [ ! -d "${WSO2_OB_IS_HOME}/repository/components" ]; then +if [ ! -d "${WSO2_IS_HOME}/repository/components" ]; then echo -e "\n\aERROR:specified product path is not a valid carbon product path\n"; exit 2; else @@ -41,7 +41,7 @@ fi echo -e "================================================\n" # Setting path for webapps folder and consentmgr folder -WEBAPPS_PATH=${WSO2_OB_IS_HOME}/repository/deployment/server/webapps +WEBAPPS_PATH=${WSO2_IS_HOME}/repository/deployment/server/webapps CONSENTMGR_PATH=${WEBAPPS_PATH}/consentmgr # Checking if consent manager app exists @@ -62,24 +62,21 @@ fi echo -e "\nCopying open banking artifacts\n" echo -e "================================================\n" -cp -r ${ACCELERATOR_HOME}/carbon-home/* "${WSO2_OB_IS_HOME}"/ +cp -r ${ACCELERATOR_HOME}/carbon-home/* "${WSO2_IS_HOME}"/ # Updating consent manager app echo -e "\nUpdating Consentmgr webapp...\n" echo -e "\nWARNING: This will replace the current consentmgr web-app with the updated one\n" echo -e "\nMake sure to rebuild the web app if you have any customizations in the toolkit/src directory.\n" -echo -e "\nPlease refer to the ReadMe file in ${WSO2_OB_IS_HOME}/repository/deployment/server/webapps/consentmgr/self-care-portal-frontend\n" +echo -e "\nPlease refer to the ReadMe file in ${WSO2_IS_HOME}/repository/deployment/server/webapps/consentmgr/self-care-portal-frontend\n" echo -e "\nExtracting consentmgr.war\n" echo -e "================================================\n" -unzip -q "${WSO2_OB_IS_HOME}/repository/deployment/server/webapps/consentmgr.war" -d "${WSO2_OB_IS_HOME}/repository/deployment/server/webapps/consentmgr" -rm -f "${WSO2_OB_IS_HOME}/repository/deployment/server/webapps/consentmgr.war" +unzip -q "${WSO2_IS_HOME}/repository/deployment/server/webapps/consentmgr.war" -d "${WSO2_IS_HOME}/repository/deployment/server/webapps/consentmgr" +rm -f "${WSO2_IS_HOME}/repository/deployment/server/webapps/consentmgr.war" # Restoring runtime-config.js if [ -f "${WEBAPPS_PATH}/runtime-config.js" ]; then mv -f ${WEBAPPS_PATH}/runtime-config.js ${CONSENTMGR_PATH} echo -e "Restoring backup runtime-config.js file complete!" fi - -find "${WSO2_OB_IS_HOME}"/repository/components/dropins -name "org.wso2.carbon.identity.application.authentication.handler.identifier-*" -exec rm -rf {} \; -echo -e "\nComplete! \n" diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/h2.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/h2.sql similarity index 64% rename from financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/h2.sql rename to financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/h2.sql index 43b9e981..64fdcb51 100644 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/h2.sql +++ b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/h2.sql @@ -20,7 +20,7 @@ -- Since the database systems does not support adding default unix time to the database columns, the default data -- storing is handled within the database queries. -CREATE TABLE IF NOT EXISTS OB_CONSENT ( +CREATE TABLE IF NOT EXISTS FS_CONSENT ( CONSENT_ID VARCHAR(255) NOT NULL, RECEIPT CLOB NOT NULL, CREATED_TIME BIGINT NOT NULL, @@ -34,7 +34,7 @@ CREATE TABLE IF NOT EXISTS OB_CONSENT ( PRIMARY KEY (CONSENT_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_AUTH_RESOURCE ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_AUTH_RESOURCE ( AUTH_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, AUTH_TYPE VARCHAR(255) NOT NULL, @@ -42,20 +42,20 @@ CREATE TABLE IF NOT EXISTS OB_CONSENT_AUTH_RESOURCE ( AUTH_STATUS VARCHAR(255) NOT NULL, UPDATED_TIME BIGINT NOT NULL, PRIMARY KEY(AUTH_ID), - CONSTRAINT FK_ID_OB_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_ID_FS_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_MAPPING ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_MAPPING ( MAPPING_ID VARCHAR(255) NOT NULL, AUTH_ID VARCHAR(255) NOT NULL, ACCOUNT_ID VARCHAR(255) NOT NULL, PERMISSION VARCHAR(255) NOT NULL, MAPPING_STATUS VARCHAR(255) NOT NULL, PRIMARY KEY(MAPPING_ID), - CONSTRAINT FK_OB_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES OB_CONSENT_AUTH_RESOURCE (AUTH_ID) + CONSTRAINT FK_FS_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES FS_CONSENT_AUTH_RESOURCE (AUTH_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_STATUS_AUDIT ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_STATUS_AUDIT ( STATUS_AUDIT_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, CURRENT_STATUS VARCHAR(255) NOT NULL, @@ -64,39 +64,20 @@ CREATE TABLE IF NOT EXISTS OB_CONSENT_STATUS_AUDIT ( ACTION_BY VARCHAR(255), PREVIOUS_STATUS VARCHAR(255), PRIMARY KEY(STATUS_AUDIT_ID), - CONSTRAINT FK_OB_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_FILE ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_FILE ( CONSENT_ID VARCHAR(255) NOT NULL, CONSENT_FILE CLOB, PRIMARY KEY(CONSENT_ID), - CONSTRAINT FK_OB_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_ATTRIBUTE ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_ATTRIBUTE ( CONSENT_ID VARCHAR(255) NOT NULL, ATT_KEY VARCHAR(255) NOT NULL, ATT_VALUE VARCHAR(255) NOT NULL, PRIMARY KEY(CONSENT_ID, ATT_KEY), - CONSTRAINT FK_OB_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) -); - -CREATE TABLE IF NOT EXISTS OB_THROTTLE_DATA ( - THROTTLE_GROUP VARCHAR(100) NOT NULL, - THROTTLE_PARAM VARCHAR(100) NOT NULL, - LAST_UPDATE_TIMESTAMP DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - UNLOCK_TIMESTAMP DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - OCCURRENCES INTEGER NOT NULL, - PRIMARY KEY (THROTTLE_GROUP,THROTTLE_PARAM) -); - -CREATE TABLE IF NOT EXISTS OB_CONSENT_HISTORY ( - TABLE_ID VARCHAR(10) NOT NULL, - RECORD_ID VARCHAR(255) NOT NULL, - HISTORY_ID VARCHAR(255) NOT NULL, - CHANGED_VALUES CLOB NOT NULL, - REASON VARCHAR(255) NOT NULL, - EFFECTIVE_TIMESTAMP BIGINT NOT NULL, - PRIMARY KEY (TABLE_ID,RECORD_ID,HISTORY_ID) + CONSTRAINT FK_FS_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/mssql.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/mssql.sql similarity index 64% rename from financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/mssql.sql rename to financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/mssql.sql index 6fbd85e6..556761ca 100644 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/mssql.sql +++ b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/mssql.sql @@ -21,7 +21,7 @@ -- Since the database systems does not support adding default unix time to the database columns, the default data -- storing is handled within the database querieS. -CREATE TABLE OB_CONSENT ( +CREATE TABLE FS_CONSENT ( CONSENT_ID VARCHAR(255) NOT NULL, RECEIPT NVARCHAR(MAX) NOT NULL, CREATED_TIME BIGINT NOT NULL, @@ -35,7 +35,7 @@ CREATE TABLE OB_CONSENT ( PRIMARY KEY (CONSENT_ID) ); -CREATE TABLE OB_CONSENT_AUTH_RESOURCE ( +CREATE TABLE FS_CONSENT_AUTH_RESOURCE ( AUTH_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, AUTH_TYPE VARCHAR(255) NOT NULL, @@ -43,20 +43,20 @@ CREATE TABLE OB_CONSENT_AUTH_RESOURCE ( AUTH_STATUS VARCHAR(255) NOT NULL, UPDATED_TIME BIGINT NOT NULL, PRIMARY KEY(AUTH_ID), - CONSTRAINT FK_ID_OB_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_ID_FS_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE OB_CONSENT_MAPPING ( +CREATE TABLE FS_CONSENT_MAPPING ( MAPPING_ID VARCHAR(255) NOT NULL, AUTH_ID VARCHAR(255) NOT NULL, ACCOUNT_ID VARCHAR(255) NOT NULL, PERMISSION VARCHAR(255) NOT NULL, MAPPING_STATUS VARCHAR(255) NOT NULL, PRIMARY KEY(MAPPING_ID), - CONSTRAINT FK_OB_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES OB_CONSENT_AUTH_RESOURCE (AUTH_ID) + CONSTRAINT FK_FS_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES FS_CONSENT_AUTH_RESOURCE (AUTH_ID) ); -CREATE TABLE OB_CONSENT_STATUS_AUDIT ( +CREATE TABLE FS_CONSENT_STATUS_AUDIT ( STATUS_AUDIT_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, CURRENT_STATUS VARCHAR(255) NOT NULL, @@ -65,40 +65,20 @@ CREATE TABLE OB_CONSENT_STATUS_AUDIT ( ACTION_BY VARCHAR(255), PREVIOUS_STATUS VARCHAR(255), PRIMARY KEY(STATUS_AUDIT_ID), - CONSTRAINT FK_OB_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE OB_CONSENT_FILE ( +CREATE TABLE FS_CONSENT_FILE ( CONSENT_ID VARCHAR(255) NOT NULL, CONSENT_FILE NVARCHAR(MAX), PRIMARY KEY(CONSENT_ID), - CONSTRAINT FK_OB_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE OB_CONSENT_ATTRIBUTE ( +CREATE TABLE FS_CONSENT_ATTRIBUTE ( CONSENT_ID VARCHAR(255) NOT NULL, ATT_KEY VARCHAR(255) NOT NULL, ATT_VALUE VARCHAR(1023) NOT NULL, PRIMARY KEY(CONSENT_ID, ATT_KEY), - CONSTRAINT FK_OB_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) ON DELETE CASCADE -); - -CREATE TABLE OB_THROTTLE_DATA ( - THROTTLE_GROUP VARCHAR(100) NOT NULL, - THROTTLE_PARAM VARCHAR(100) NOT NULL, - LAST_UPDATE_TIMESTAMP DATETIME NOT NULL DEFAULT getdate(), - UNLOCK_TIMESTAMP DATETIME NOT NULL DEFAULT getdate(), - OCCURRENCES INT NOT NULL, - PRIMARY KEY (THROTTLE_GROUP,THROTTLE_PARAM) -); - -CREATE TABLE OB_CONSENT_HISTORY ( - TABLE_ID VARCHAR(10) NOT NULL, - RECORD_ID VARCHAR(255) NOT NULL, - HISTORY_ID VARCHAR(255) NOT NULL, - CHANGED_VALUES NVARCHAR(max) NOT NULL - CONSTRAINT [IS JSON check] CHECK (ISJSON(CHANGED_VALUES) > 0), - REASON VARCHAR(255) NOT NULL, - EFFECTIVE_TIMESTAMP BIGINT NOT NULL, - PRIMARY KEY (TABLE_ID,RECORD_ID,HISTORY_ID) + CONSTRAINT FK_FS_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ON DELETE CASCADE ); diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/mysql.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/mysql.sql similarity index 63% rename from financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/mysql.sql rename to financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/mysql.sql index b44e54ff..4d08319d 100644 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/mysql.sql +++ b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/mysql.sql @@ -20,7 +20,7 @@ -- Since the database systems does not support adding default unix time to the database columns, the default data -- storing is handled within the database queries. -CREATE TABLE IF NOT EXISTS OB_CONSENT ( +CREATE TABLE IF NOT EXISTS FS_CONSENT ( CONSENT_ID VARCHAR(255) NOT NULL, RECEIPT JSON NOT NULL, CREATED_TIME BIGINT NOT NULL, @@ -35,7 +35,7 @@ CREATE TABLE IF NOT EXISTS OB_CONSENT ( ) ENGINE INNODB; -CREATE TABLE IF NOT EXISTS OB_CONSENT_AUTH_RESOURCE ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_AUTH_RESOURCE ( AUTH_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, AUTH_TYPE VARCHAR(255) NOT NULL, @@ -43,22 +43,22 @@ CREATE TABLE IF NOT EXISTS OB_CONSENT_AUTH_RESOURCE ( AUTH_STATUS VARCHAR(255) NOT NULL, UPDATED_TIME BIGINT NOT NULL, PRIMARY KEY(AUTH_ID), - CONSTRAINT FK_ID_OB_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_ID_FS_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ) ENGINE INNODB; -CREATE TABLE IF NOT EXISTS OB_CONSENT_MAPPING ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_MAPPING ( MAPPING_ID VARCHAR(255) NOT NULL, AUTH_ID VARCHAR(255) NOT NULL, ACCOUNT_ID VARCHAR(255) NOT NULL, PERMISSION VARCHAR(255) NOT NULL, MAPPING_STATUS VARCHAR(255) NOT NULL, PRIMARY KEY(MAPPING_ID), - CONSTRAINT FK_OB_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES OB_CONSENT_AUTH_RESOURCE (AUTH_ID) + CONSTRAINT FK_FS_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES FS_CONSENT_AUTH_RESOURCE (AUTH_ID) ) ENGINE INNODB; -CREATE TABLE IF NOT EXISTS OB_CONSENT_STATUS_AUDIT ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_STATUS_AUDIT ( STATUS_AUDIT_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, CURRENT_STATUS VARCHAR(255) NOT NULL, @@ -67,44 +67,23 @@ CREATE TABLE IF NOT EXISTS OB_CONSENT_STATUS_AUDIT ( ACTION_BY VARCHAR(255), PREVIOUS_STATUS VARCHAR(255), PRIMARY KEY(STATUS_AUDIT_ID), - CONSTRAINT FK_OB_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ) ENGINE INNODB; -CREATE TABLE IF NOT EXISTS OB_CONSENT_FILE ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_FILE ( CONSENT_ID VARCHAR(255) NOT NULL, CONSENT_FILE BLOB NOT NULL, PRIMARY KEY(CONSENT_ID), - CONSTRAINT FK_OB_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ) ENGINE INNODB; -CREATE TABLE IF NOT EXISTS OB_CONSENT_ATTRIBUTE ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_ATTRIBUTE ( CONSENT_ID VARCHAR(255) NOT NULL, ATT_KEY VARCHAR(255) NOT NULL, ATT_VALUE VARCHAR(1023) NOT NULL, PRIMARY KEY(CONSENT_ID, ATT_KEY), - CONSTRAINT FK_OB_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) ON DELETE CASCADE -) -ENGINE INNODB; - -CREATE TABLE IF NOT EXISTS OB_THROTTLE_DATA ( - THROTTLE_GROUP VARCHAR(100) NOT NULL, - THROTTLE_PARAM VARCHAR(100) NOT NULL, - LAST_UPDATE_TIMESTAMP TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - UNLOCK_TIMESTAMP TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, - OCCURRENCES INT(11) NOT NULL, - PRIMARY KEY (THROTTLE_GROUP,THROTTLE_PARAM) -) -ENGINE INNODB; - -CREATE TABLE IF NOT EXISTS OB_CONSENT_HISTORY ( - TABLE_ID VARCHAR(10) NOT NULL, - RECORD_ID VARCHAR(255) NOT NULL, - HISTORY_ID VARCHAR(255) NOT NULL, - CHANGED_VALUES JSON NOT NULL, - REASON VARCHAR(255) NOT NULL, - EFFECTIVE_TIMESTAMP BIGINT NOT NULL, - PRIMARY KEY (TABLE_ID,RECORD_ID,HISTORY_ID) + CONSTRAINT FK_FS_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ON DELETE CASCADE ) ENGINE INNODB; diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/oracle.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/oracle.sql similarity index 64% rename from financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/oracle.sql rename to financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/oracle.sql index c363ac8a..771c0655 100644 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/oracle.sql +++ b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/oracle.sql @@ -20,7 +20,7 @@ -- Since the database systems does not support adding default unix time to the database columns, the default data -- storing is handled within the database queries. -CREATE TABLE OB_CONSENT ( +CREATE TABLE FS_CONSENT ( CONSENT_ID VARCHAR(255) NOT NULL, RECEIPT CLOB NOT NULL, CREATED_TIME NUMBER NOT NULL, @@ -34,7 +34,7 @@ CREATE TABLE OB_CONSENT ( PRIMARY KEY (CONSENT_ID) ); -CREATE TABLE OB_CONSENT_AUTH_RESOURCE ( +CREATE TABLE FS_CONSENT_AUTH_RESOURCE ( AUTH_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, AUTH_TYPE VARCHAR(255) NOT NULL, @@ -42,20 +42,20 @@ CREATE TABLE OB_CONSENT_AUTH_RESOURCE ( AUTH_STATUS VARCHAR(255) NOT NULL, UPDATED_TIME NUMBER NOT NULL, PRIMARY KEY(AUTH_ID), - CONSTRAINT FK_OB_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE OB_CONSENT_MAPPING ( +CREATE TABLE FS_CONSENT_MAPPING ( MAPPING_ID VARCHAR(255) NOT NULL, AUTH_ID VARCHAR(255) NOT NULL, ACCOUNT_ID VARCHAR(255) NOT NULL, PERMISSION VARCHAR(255) NOT NULL, MAPPING_STATUS VARCHAR(255) NOT NULL, PRIMARY KEY(MAPPING_ID), - CONSTRAINT FK_OB_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES OB_CONSENT_AUTH_RESOURCE (AUTH_ID) + CONSTRAINT FK_FS_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES FS_CONSENT_AUTH_RESOURCE (AUTH_ID) ); -CREATE TABLE OB_CONSENT_STATUS_AUDIT ( +CREATE TABLE FS_CONSENT_STATUS_AUDIT ( STATUS_AUDIT_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, CURRENT_STATUS VARCHAR(255) NOT NULL, @@ -64,40 +64,20 @@ CREATE TABLE OB_CONSENT_STATUS_AUDIT ( ACTION_BY VARCHAR(255), PREVIOUS_STATUS VARCHAR(255), PRIMARY KEY(STATUS_AUDIT_ID), - CONSTRAINT FK_OB_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE OB_CONSENT_FILE ( +CREATE TABLE FS_CONSENT_FILE ( CONSENT_ID VARCHAR(255) NOT NULL, CONSENT_FILE CLOB, PRIMARY KEY(CONSENT_ID), - CONSTRAINT FK_OB_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE OB_CONSENT_ATTRIBUTE ( +CREATE TABLE FS_CONSENT_ATTRIBUTE ( CONSENT_ID VARCHAR(255) NOT NULL, ATT_KEY VARCHAR(255) NOT NULL, ATT_VALUE VARCHAR(1023) NOT NULL, PRIMARY KEY(CONSENT_ID, ATT_KEY), - CONSTRAINT FK_OB_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) ON DELETE CASCADE -); - -CREATE TABLE OB_THROTTLE_DATA ( - THROTTLE_GROUP VARCHAR(100) NOT NULL, - THROTTLE_PARAM VARCHAR(100) NOT NULL, - LAST_UPDATE_TIMESTAMP TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, - UNLOCK_TIMESTAMP TIMESTAMP DEFAULT CURRENT_TIMESTAMP NULL, - OCCURRENCES NUMBER(11) NOT NULL, - PRIMARY KEY (THROTTLE_GROUP,THROTTLE_PARAM) -); - -CREATE TABLE OB_CONSENT_HISTORY ( - TABLE_ID VARCHAR(10) NOT NULL, - RECORD_ID VARCHAR(255) NOT NULL, - HISTORY_ID VARCHAR(255) NOT NULL, - CHANGED_VALUES CLOB NOT NULL, - REASON VARCHAR(255) NOT NULL, - EFFECTIVE_TIMESTAMP NUMBER NOT NULL, - CONSTRAINT ensure_json CHECK (CHANGED_VALUES IS JSON), - PRIMARY KEY (TABLE_ID,RECORD_ID,HISTORY_ID) + CONSTRAINT FK_FS_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ON DELETE CASCADE ); diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/postgresql.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/postgresql.sql similarity index 63% rename from financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/postgresql.sql rename to financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/postgresql.sql index dc6d66be..fafef9e8 100644 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/consent/postgresql.sql +++ b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/consent/postgresql.sql @@ -18,7 +18,7 @@ -- All the data related to time are stored in unix time stamp and therefore, the data types for the time related data are represented in LONG. -- Since the database systems does not support adding default unix time to the database columns, the default data storing is handled within the database queries. -CREATE TABLE IF NOT EXISTS OB_CONSENT ( +CREATE TABLE IF NOT EXISTS FS_CONSENT ( CONSENT_ID VARCHAR(255) NOT NULL, RECEIPT TEXT NOT NULL, CREATED_TIME BIGINT NOT NULL, @@ -32,7 +32,7 @@ CREATE TABLE IF NOT EXISTS OB_CONSENT ( PRIMARY KEY (CONSENT_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_AUTH_RESOURCE ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_AUTH_RESOURCE ( AUTH_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, AUTH_TYPE VARCHAR(255) NOT NULL, @@ -40,20 +40,20 @@ CREATE TABLE IF NOT EXISTS OB_CONSENT_AUTH_RESOURCE ( AUTH_STATUS VARCHAR(255) NOT NULL, UPDATED_TIME BIGINT NOT NULL, PRIMARY KEY(AUTH_ID), - CONSTRAINT FK_ID_OB_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_ID_FS_CONSENT_AUTH_RESOURCE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_MAPPING ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_MAPPING ( MAPPING_ID VARCHAR(255) NOT NULL, AUTH_ID VARCHAR(255) NOT NULL, ACCOUNT_ID VARCHAR(255) NOT NULL, PERMISSION VARCHAR(255) NOT NULL, MAPPING_STATUS VARCHAR(255) NOT NULL, PRIMARY KEY(MAPPING_ID), - CONSTRAINT FK_OB_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES OB_CONSENT_AUTH_RESOURCE (AUTH_ID) + CONSTRAINT FK_FS_CONSENT_MAPPING FOREIGN KEY (AUTH_ID) REFERENCES FS_CONSENT_AUTH_RESOURCE (AUTH_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_STATUS_AUDIT ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_STATUS_AUDIT ( STATUS_AUDIT_ID VARCHAR(255) NOT NULL, CONSENT_ID VARCHAR(255) NOT NULL, CURRENT_STATUS VARCHAR(255) NOT NULL, @@ -62,40 +62,20 @@ CREATE TABLE IF NOT EXISTS OB_CONSENT_STATUS_AUDIT ( ACTION_BY VARCHAR(255), PREVIOUS_STATUS VARCHAR(255), PRIMARY KEY(STATUS_AUDIT_ID), - CONSTRAINT FK_OB_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_STATUS_AUDIT FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_FILE ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_FILE ( CONSENT_ID VARCHAR(255) NOT NULL, CONSENT_FILE TEXT, PRIMARY KEY(CONSENT_ID), - CONSTRAINT FK_OB_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) + CONSTRAINT FK_FS_CONSENT_FILE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ); -CREATE TABLE IF NOT EXISTS OB_CONSENT_ATTRIBUTE ( +CREATE TABLE IF NOT EXISTS FS_CONSENT_ATTRIBUTE ( CONSENT_ID VARCHAR(255) NOT NULL, ATT_KEY VARCHAR(255) NOT NULL, ATT_VALUE VARCHAR(1023) NOT NULL, PRIMARY KEY(CONSENT_ID, ATT_KEY), - CONSTRAINT FK_OB_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES OB_CONSENT (CONSENT_ID) ON DELETE CASCADE + CONSTRAINT FK_FS_CONSENT_ATTRIBUTE FOREIGN KEY (CONSENT_ID) REFERENCES FS_CONSENT (CONSENT_ID) ON DELETE CASCADE ); - -CREATE TABLE IF NOT EXISTS OB_THROTTLE_DATA ( - THROTTLE_GROUP VARCHAR(100) NOT NULL, - THROTTLE_PARAM VARCHAR(100) NOT NULL, - LAST_UPDATE_TIMESTAMP TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - UNLOCK_TIMESTAMP TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, - OCCURRENCES INT NOT NULL, - PRIMARY KEY (THROTTLE_GROUP,THROTTLE_PARAM) -); - -CREATE TABLE IF NOT EXISTS OB_CONSENT_HISTORY ( - TABLE_ID VARCHAR(10) NOT NULL, - RECORD_ID VARCHAR(255) NOT NULL, - HISTORY_ID VARCHAR(255) NOT NULL, - CHANGED_VALUES JSON NOT NULL, - REASON VARCHAR(255) NOT NULL, - EFFECTIVE_TIMESTAMP BIGINT NOT NULL, - PRIMARY KEY (TABLE_ID,RECORD_ID,HISTORY_ID) -); - diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/event-notifications/mssql.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/event-notifications/mssql.sql similarity index 100% rename from financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/event-notifications/mssql.sql rename to financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/event-notifications/mssql.sql diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/event-notifications/mysql.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/event-notifications/mysql.sql similarity index 100% rename from financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/event-notifications/mysql.sql rename to financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/event-notifications/mysql.sql diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/event-notifications/oracle.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/event-notifications/oracle.sql similarity index 100% rename from financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/event-notifications/oracle.sql rename to financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/event-notifications/oracle.sql diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/event-notifications/postgresql.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/event-notifications/postgresql.sql similarity index 100% rename from financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/event-notifications/postgresql.sql rename to financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/financial-services/event-notifications/postgresql.sql diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/h2.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/h2.sql deleted file mode 100644 index 040ec055..00000000 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/h2.sql +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - ---For account metadata feature run the following queries against the openbank_openbankingdb-- -CREATE TABLE IF NOT EXISTS OB_ACCOUNT_METADATA ( - ACCOUNT_ID VARCHAR(100) NOT NULL, - USER_ID VARCHAR(100) NOT NULL, - METADATA_KEY VARCHAR(100) NOT NULL, - METADATA_VALUE VARCHAR(100) NOT NULL, - LAST_UPDATED_TIMESTAMP TIMESTAMP NOT NULL, - PRIMARY KEY (USER_ID,ACCOUNT_ID,METADATA_KEY) -); diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/mssql.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/mssql.sql deleted file mode 100644 index 2d109b3e..00000000 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/mssql.sql +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - ---For account metadata feature run the following queries against the openbank_openbankingdb-- -CREATE TABLE IF NOT EXISTS OB_ACCOUNT_METADATA ( - ACCOUNT_ID VARCHAR(100) NOT NULL, - USER_ID VARCHAR(100) NOT NULL, - METADATA_KEY VARCHAR(100) NOT NULL, - METADATA_VALUE VARCHAR(100) NOT NULL, - LAST_UPDATE_TIMESTAMP DATETIME NOT NULL DEFAULT getdate(), - PRIMARY KEY (USER_ID,ACCOUNT_ID,METADATA_KEY) -); diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/mysql.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/mysql.sql deleted file mode 100644 index ca01fa7d..00000000 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/mysql.sql +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ --- For account metadata feature run the following queries against the openbank_openbankingdb -CREATE TABLE IF NOT EXISTS OB_ACCOUNT_METADATA ( - ACCOUNT_ID VARCHAR(100) NOT NULL, - USER_ID VARCHAR(100) NOT NULL, - METADATA_KEY VARCHAR(100) NOT NULL, - METADATA_VALUE VARCHAR(100) NOT NULL, - LAST_UPDATED_TIMESTAMP TIMESTAMP NOT NULL, - PRIMARY KEY (USER_ID,ACCOUNT_ID,METADATA_KEY) -); diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/oracle.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/oracle.sql deleted file mode 100644 index 3e65ac5e..00000000 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/oracle.sql +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - ---For account metadata feature run the following queries against the openbank_openbankingdb-- -CREATE TABLE IF NOT EXISTS OB_ACCOUNT_METADATA ( - ACCOUNT_ID varchar(100) NOT NULL, - USER_ID varchar(100) NOT NULL, - METADATA_KEY varchar(100) NOT NULL, - METADATA_VALUE varchar(100) NOT NULL, - LAST_UPDATE_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, - PRIMARY KEY (USER_ID,ACCOUNT_ID,METADATA_KEY) -); diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/postgresql.sql b/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/postgresql.sql deleted file mode 100644 index 57c3aa2f..00000000 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/dbscripts/open-banking/account-metadata/postgresql.sql +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - ---For account metadata feature run the following queries against the openbank_openbankingdb-- -CREATE TABLE IF NOT EXISTS OB_ACCOUNT_METADATA ( - ACCOUNT_ID varchar(100) NOT NULL, - USER_ID varchar(100) NOT NULL, - METADATA_KEY varchar(100) NOT NULL, - METADATA_VALUE varchar(100) NOT NULL, - LAST_UPDATE_TIMESTAMP TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (USER_ID,ACCOUNT_ID,METADATA_KEY) -); diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/dropins/classmate-1.5.1.jar b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/dropins/classmate-1.5.1.jar new file mode 100644 index 00000000..819f5eaf Binary files /dev/null and b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/dropins/classmate-1.5.1.jar differ diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/libs/commons-beanutils-1.9.4.jar b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/libs/commons-beanutils-1.9.4.jar new file mode 100644 index 00000000..b73543cb Binary files /dev/null and b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/libs/commons-beanutils-1.9.4.jar differ diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/libs/hibernate-validator-6.0.20.Final.jar b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/libs/hibernate-validator-6.0.20.Final.jar new file mode 100644 index 00000000..cf09a081 Binary files /dev/null and b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/libs/hibernate-validator-6.0.20.Final.jar differ diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/libs/validation-api-2.0.1.Final.jar b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/libs/validation-api-2.0.1.Final.jar new file mode 100644 index 00000000..2368e10a Binary files /dev/null and b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/components/libs/validation-api-2.0.1.Final.jar differ diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/conf/common.auth.script.js b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/conf/common.auth.script.js deleted file mode 100644 index 107478b2..00000000 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/conf/common.auth.script.js +++ /dev/null @@ -1,15 +0,0 @@ -var psuChannel = 'Online Banking'; - -var onLoginRequest = function(context) { - publishAuthData(context, "AuthenticationAttempted", {'psuChannel': psuChannel}); - executeStep(1, { - onSuccess: function (context) { - Log.info("Authentication Successful"); - publishAuthData(context, "AuthenticationSuccessful", {'psuChannel': psuChannel}); - }, - onFail: function (context) { - Log.info("Authentication Failed"); - publishAuthData(context, "AuthenticationFailed", {'psuChannel': psuChannel}); - } - }); -}; diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/conf/financial-services.xml b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/conf/financial-services.xml index 83095050..ba50d4db 100644 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/conf/financial-services.xml +++ b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/conf/financial-services.xml @@ -17,221 +17,75 @@ ~ under the License. --> - - + + + + 60 + 60 + + - - jdbc/WSO2OB_DB + jdbc/WSO2FS_DB - 1 - - - - - com.wso2.openbanking.accelerator.identity.auth.extensions.request.validator.OBRequestObjectValidator - - com.wso2.openbanking.accelerator.identity.claims.OBDefaultClaimProvider - com.wso2.openbanking.accelerator.identity.interceptor.OBDefaultIntrospectionDataProvider - - com.wso2.openbanking.accelerator.identity.auth.extensions.response.handler.impl.OBDefaultResponseTypeHandlerImpl - - - - com.wso2.openbanking.accelerator.identity.token.DefaultTokenFilter - - - com.wso2.openbanking.accelerator.identity.token.validators.MTLSEnforcementValidator - com.wso2.openbanking.accelerator.identity.token.validators.SignatureAlgorithmEnforcementValidator - com.wso2.openbanking.accelerator.identity.token.validators.ClientAuthenticatorValidator - - - com.wso2.openbanking.accelerator.consent.extensions.authservlet.impl.OBDefaultAuthServletImpl - - - - com.wso2.openbanking.accelerator.identity.sp.metadata.extension.impl.DefaultSPMetadataFilter - - - - - 60 - 60 - - - - software_jwks_endpoint - - - - false - 0 0 0 * * ? - Expired - authorised - + org.wso2.financial.services.accelerator.consent.mgt.extensions.manage.impl.DefaultConsentManageHandler - - + - + - com.wso2.openbanking.accelerator.consent.extensions.manage.impl.DefaultConsentManageHandler - com.wso2.openbanking.accelerator.consent.extensions.validate.impl.DefaultConsentValidator - apim + org.wso2.financial.services.accelerator.consent.mgt.extensions.validate.impl.DefaultConsentValidator + wso2carbon true - com.wso2.openbanking.accelerator.consent.extensions.admin.impl.DefaultConsentAdminHandler + org.wso2.financial.services.accelerator.consent.mgt.extensions.admin.impl.DefaultConsentAdminHandler + + admin + admin + + + 1000 + + + + 0NXYPMnh9mxSPCVjvvsVh17LWDca + pfVkfiEUvQqmZdYQuruauOs6SS0wd7yggkR2of58NXsa + + + https://localhost:9443 + https://localhost:8243 + + + false + + false + 1440 + - - com.wso2.openbanking.accelerator.identity.dcr.validation.DefaultRegistrationValidatorImpl - https://keystore.openbankingtest.org.uk/0015800001HQQrZAAX/9b5usDpbNtmxDcTzs7GzKp.jwks - https://keystore.openbanking.org.uk/keystore/openbanking.jwks - false - cdr-registration - https://gateway/register/ - - 0 - 0 - - - OpenBanking Ltd - CDR - - com.wso2.openbanking.accelerator.identity.listener.application.ApplicationUpdaterImpl - - - true - - - false - - - true - - - true - - - true - - - true - - - true - - - false - - - false - - - false - - - false - - - false - - - false - - - false - - - false - - - false - - - false - - - false - - - false - - - false - - - - - - PS256 - ES256 - - - - true - admin - admin - {tcp://localhost:7612} - - - Thrift - 10 - 32768 - 10 - 60000 - - 2000 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - com.wso2.openbanking.accelerator.authentication.data.publisher.extension.DefaultAuthDataPublisher - - - - BasicAuthenticator - basic - - SMSAuthentication - + + + org.wso2.financial.services.accelerator.consent.mgt.extensions.authservlet.impl.FSDefaultAuthServletImpl + + consent_id + + org.wso2.financial.services.accelerator.identity.extensions.auth.extensions.request.validator.DefaultFSRequestObjectValidator + org.wso2.financial.services.accelerator.identity.extensions.auth.extensions.response.handler.impl.FSDefaultResponseTypeHandlerImpl + org.wso2.financial.services.accelerator.identity.extensions.claims.FSDefaultClaimProvider + + + true + true + + 2000 1500 - - false - - diff --git a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/resources/conf/templates/repository/conf/financial-services.xml.j2 b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/resources/conf/templates/repository/conf/financial-services.xml.j2 index 83e38080..1cb69ba2 100644 --- a/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/resources/conf/templates/repository/conf/financial-services.xml.j2 +++ b/financial-services-accelerator/accelerators/fs-is/carbon-home/repository/resources/conf/templates/repository/conf/financial-services.xml.j2 @@ -17,1089 +17,207 @@ ~ under the License. --> - + + + + {% if financial_services.common.cache.cache_access_expiry_minutes is defined %} + {{financial_services.common.cache.cache_access_expiry_minutes}} + {% else %} + 60 + {% endif %} + {% if financial_services.common.cache.cache_modified_expiry_minutes is defined %} + {{financial_services.common.cache.cache_modified_expiry_minutes}} + {% else %} + 60 + {% endif %} + + - {% if open_banking.jdbc_persistence_manager.data_source is defined %} - jdbc/{{open_banking.jdbc_persistence_manager.data_source.name}} + {% if financial_services.jdbc_persistence_manager.data_source is defined %} + jdbc/{{financial_services.jdbc_persistence_manager.data_source.name}} {% else %} - jdbc/WSO2OB_DB + jdbc/WSO2FS_DB {% endif %} - {% if open_banking.jdbc_persistence_manager.connection_verification_timeout is defined %} - {{open_banking.jdbc_persistence_manager.connection_verification_timeout}} + {% if financial_services.jdbc_persistence_manager.connection_verification_timeout is defined %} + {{financial_services.jdbc_persistence_manager.connection_verification_timeout}} {% else %} 1 {% endif %} - - - - {% if open_banking.jdbc_retention_data_persistence_manager.data_source is defined %} - jdbc/{{open_banking.jdbc_retention_data_persistence_manager.data_source.name}} - {% else %} - jdbc/WSO2OB_RET_DB - {% endif %} - - {% if open_banking.jdbc_retention_data_persistence_manager.connection_verification_timeout is defined %} - {{open_banking.jdbc_retention_data_persistence_manager.connection_verification_timeout}} - {% else %} - 1 - {% endif %} - - - - {% if open_banking.identity.extensions.request_object_validator is defined %} - {{open_banking.identity.extensions.request_object_validator}} - {% else %} - com.wso2.openbanking.accelerator.identity.auth.extensions.request.validator.OBRequestObjectValidator - {% endif %} - {% if open_banking.identity.extensions.push_auth_request_validator is defined %} - {{open_banking.identity.extensions.push_auth_request_validator}} - {% else %} - com.wso2.openbanking.accelerator.identity.push.auth.extension.request.validator.PushAuthRequestValidator - {% endif %} - {% if open_banking.identity.extensions.claim_provider is defined %} - {{open_banking.identity.extensions.claim_provider}} - {% else %} - com.wso2.openbanking.accelerator.identity.claims.OBDefaultClaimProvider - {% endif %} - {% if open_banking.identity.extensions.introspection_data_provider is defined %} - {{open_banking.identity.extensions.introspection_data_provider}} - {% else %} - com.wso2.openbanking.accelerator.identity.interceptor.OBDefaultIntrospectionDataProvider - {% endif %} - - {% if open_banking.identity.extensions.response_type_handler is defined %} - {{open_banking.identity.extensions.response_type_handler}} - {% else %} - com.wso2.openbanking.accelerator.identity.auth.extensions.response.handler.impl.OBDefaultResponseTypeHandlerImpl - {% endif %} - - - {% if open_banking.identity.filters.token_filter is defined %} - {{open_banking.identity.filters.token_filter}} - {% else %} - com.wso2.openbanking.accelerator.identity.token.DefaultTokenFilter - {% endif %} - - - {% if open_banking.identity.token_filter_validators is defined %} - {% for validator in open_banking.identity.token_filter_validators %} - {{validator.class}} - {% endfor %} - {% else %} - com.wso2.openbanking.accelerator.identity.token.validators.MTLSEnforcementValidator - com.wso2.openbanking.accelerator.identity.token.validators.MTLSCertificateValidator - com.wso2.openbanking.accelerator.identity.token.validators.SignatureAlgorithmEnforcementValidator - com.wso2.openbanking.accelerator.identity.token.validators.ClientAuthenticatorValidator - {% endif %} - - {% if open_banking.identity.client_transport_cert_as_header_enabled is defined %} - {{open_banking.identity.client_transport_cert_as_header_enabled}} - {% else %} - true - {% endif %} - {% if open_banking.identity.signing_certificate_kid is defined %} - {{open_banking.identity.signing_certificate_kid}} - {% endif %} - {% if open_banking.identity.enable_PPID is defined %} - {{open_banking.identity.enable_PPID}} - {% else %} - false - {% endif %} - - {% if open_banking.identity.token.remove_user_store_domain_from_subject is defined %} - {{open_banking.identity.token.remove_user_store_domain_from_subject}} - {% else %} - false - {% endif %} - {% if open_banking.identity.token.remove_tenant_domain_from_subject is defined %} - {{open_banking.identity.token.remove_tenant_domain_from_subject}} - {% else %} - false - {% endif %} - - - - {% if open_banking.identity.cache.cache_access_expiry_minutes is defined %} - {{open_banking.identity.cache.cache_access_expiry_minutes}} - {% endif %} - {% if open_banking.identity.cache.cache_modified_expiry_minutes is defined %} - {{open_banking.identity.cache.cache_modified_expiry_minutes}} - {% endif %} - - - - - {% if open_banking.identity.ciba_webapp.servlet_extension is defined %} - - {{open_banking.identity.ciba_webapp.servlet_extension}} - - {% else %} - - com.wso2.openbanking.accelerator.consent.extensions.ciba.impl.CIBAAuthenticationEndpointDefaultImpl - - {% endif %} - - - {% if open_banking.identity.authentication_webapp.servlet_extension is defined %} - - {{open_banking.identity.authentication_webapp.servlet_extension}} - - {% else %} - - com.wso2.openbanking.accelerator.consent.extensions.authservlet.impl.OBDefaultAuthServletImpl - - {% endif %} - - - {% if open_banking.identity.application_information_webapp.sp_metadata_filter is defined %} - - {{open_banking.identity.application_information_webapp.sp_metadata_filter}} - - {% else %} - - com.wso2.openbanking.accelerator.identity.sp.metadata.extension.impl.DefaultSPMetadataFilter - - {% endif %} - - {% if open_banking.identity.consent_id_claim_name is defined %} - {{open_banking.identity.consent_id_claim_name}} - {% else %} - consent_id - {% endif %} - - {% if open_banking.identity.mutualtls.client_certificate_encode is defined %} - {{open_banking.identity.mutualtls.client_certificate_encode}} - {% else %} - true - {% endif %} - {% if open_banking.identity.mutualtls.transport_jwks_uri is defined %} - {{open_banking.identity.mutualtls.transport_jwks_uri}} - {% else %} - software_jwks_endpoint - {% endif %} - - - {% if open_banking.consent.preserve_consent_link.enable is defined %} - {{open_banking.consent.preserve_consent_link.enable}} - {% else %} - false - {% endif %} - - {% if open_banking.consent.account_consent_self_link is defined %} - {{open_banking.consent.account_consent_self_link}} - {% else %} - https://localhost:8243/open-banking/{version}/aisp/ - {% endif %} - {% if open_banking.consent.payment_consent_self_link is defined %} - {{open_banking.consent.payment_consent_self_link}} - {% else %} - https://localhost:8243/open-banking/{version}/pisp/ - {% endif %} - {% if open_banking.consent.cof_consent_self_link is defined %} - {{open_banking.consent.cof_consent_self_link}} + {% if financial_services.consent.manage.handler is defined %} + {{financial_services.consent.manage.handler}} {% else %} - https://localhost:8243/open-banking/{version}/cbpii/ + org..wso2.financial.services.accelerator.consent.extensions.manage.impl.DefaultConsentManageHandler {% endif %} - {% if open_banking.consent.vrp_consent_self_link is defined %} - {{open_banking.consent.vrp_consent_self_link}} - {% else %} - https://localhost:8243/open-banking/{version}/vrp/ - {% endif %} - - {% if open_banking.consent.data_retention.enabled is defined %} - {{open_banking.consent.data_retention.enabled}} - {% else %} - false - {% endif %} - {% if open_banking.consent.data_retention.enable_db_sync_periodical_job is defined %} - {{open_banking.consent.data_retention.enable_db_sync_periodical_job}} - {% else %} - false - {% endif %} - {% if open_banking.consent.data_retention.db_sync_cron_value is defined %} - {{open_banking.consent.data_retention.db_sync_cron_value}} - {% else %} - 0 0 0 * * ? - {% endif %} - - - {% if open_banking.consent.periodical_expiration.enabled is defined %} - {{open_banking.consent.periodical_expiration.enabled}} - {% else %} - false - {% endif %} - {% if open_banking.consent.periodical_expiration.cron_value is defined %} - {{open_banking.consent.periodical_expiration.cron_value}} - {% else %} - 0 0 0 * * ? - {% endif %} - {% if open_banking.consent.periodical_expiration.expired_consent_status_value is defined %} - {{open_banking.consent.periodical_expiration.expired_consent_status_value}} - {% else %} - Expired - {% endif %} - {% if open_banking.consent.periodical_expiration.eligible_statuses is defined %} - {{open_banking.consent.periodical_expiration.eligible_statuses}} - {% else %} - authorised - {% endif %} - - - {% if open_banking.consent.amendment_history.enabled is defined %} - {{open_banking.consent.amendment_history.enabled}} - {% else %} - false - {% endif %} - - {% if open_banking.consent.authorize_steps.retrieve is defined %} - {% for step in open_banking.consent.authorize_steps.retrieve %} + {% if financial_services.consent.authorize_steps.retrieve is defined %} + {% for step in financial_services.consent.authorize_steps.retrieve %} {% endfor %} {% else %} - - + {% endif %} - {% if open_banking.consent.authorize_steps.persist is defined %} - {% for step in open_banking.consent.authorize_steps.persist %} + {% if financial_services.consent.authorize_steps.persist is defined %} + {% for step in financial_services.consent.authorize_steps.persist %} {% endfor %} {% else %} - + {% endif %} - - {% if open_banking.consent.manage.handler is defined %} - {{open_banking.consent.manage.handler}} - {% else %} - com.wso2.openbanking.accelerator.consent.extensions.manage.impl.DefaultConsentManageHandler - {% endif %} + - {% if open_banking.consent.validation.validator is defined %} - {{open_banking.consent.validation.validator}} + {% if financial_services.consent.validation.validator is defined %} + {{financial_services.consent.validation.validator}} {% else %} - com.wso2.openbanking.accelerator.consent.extensions.validate.impl.DefaultConsentValidator + org..wso2.financial.services.accelerator.consent.extensions.validate.impl.DefaultConsentValidator {% endif %} - {% if open_banking.consent.validation.signature.alias is defined %} - {{open_banking.consent.validation.signature.alias}} + {% if financial_services.consent.validation.signature.alias is defined %} + {{financial_services.consent.validation.signature.alias}} {% else %} wso2carbon {% endif %} - {% if open_banking.consent.validation.jwt.payload.enabled is defined %} - {{open_banking.consent.validation.jwt.payload.enabled}} + {% if financial_services.consent.validation.jwt.payload.enabled is defined %} + {{financial_services.consent.validation.jwt.payload.enabled}} {% else %} true {% endif %} - {% if open_banking.consent.admin.handler is defined %} - {{open_banking.consent.admin.handler}} + {% if financial_services.consent.admin.handler is defined %} + {{financial_services.consent.admin.handler}} {% else %} - com.wso2.openbanking.accelerator.consent.extensions.admin.impl.DefaultConsentAdminHandler + org..wso2.financial.services.accelerator.consent.extensions.admin.impl.DefaultConsentAdminHandler {% endif %} - - {% if open_banking.consent.payment_restrictions.max_instructed_amount is defined %} - {{open_banking.consent.payment_restrictions.max_instructed_amount}} - {% else %} - 1000.00 - {% endif %} - {% if open_banking.consent.payment_restrictions.max_future_days is defined %} - {{open_banking.consent.payment_restrictions.max_future_days}} - {% else %} - 900 - {% endif %} - - - {% if open_banking.consent.payment_restrictions.cutoff_date.enabled is defined %} - {{open_banking.consent.payment_restrictions.cutoff_date.enabled}} - {% else %} - false - {% endif %} - {% if open_banking.consent.payment_restrictions.cutoff_date.policy is defined %} - {{open_banking.consent.payment_restrictions.cutoff_date.policy}} - {% else %} - ACCEPT - {% endif %} - {% if open_banking.consent.payment_restrictions.cutoff_date.daily_cutoff is defined %} - {{open_banking.consent.payment_restrictions.cutoff_date.daily_cutoff}} - {% else %} - 6:30:00+00:00 - {% endif %} - {% if open_banking.consent.payment_restrictions.cutoff_date.execution_time is defined %} - {{open_banking.consent.payment_restrictions.cutoff_date.execution_time}} - {% else %} - 10:00:00+00:00 - {% endif %} - {% if open_banking.consent.payment_restrictions.cutoff_date.settlement_time is defined %} - {{open_banking.consent.payment_restrictions.cutoff_date.settlement_time}} - {% else %} - 11:00:00+00:00 - {% endif %} - - - - {% if open_banking.consent.custom_local_instruments is defined %} - {{open_banking.consent.custom_local_instruments}} - {% else %} - - {% endif %} - - {% if open_banking.consent.api_credentials.username is defined %} - {{open_banking.consent.api_credentials.username}} + {% if financial_services.consent.api_credentials.username is defined %} + {{financial_services.consent.api_credentials.username}} {% else %} admin@wso2.com {% endif %} - {% if open_banking.consent.api_credentials.password is defined %} - {{open_banking.consent.api_credentials.password}} + {% if financial_services.consent.api_credentials.password is defined %} + {{financial_services.consent.api_credentials.password}} {% else %} wso2123 {% endif %} - {% if open_banking.consent.portal.client_credentials.client_id is defined %} - {{open_banking.consent.portal.client_credentials.client_id}} + {% if financial_services.consent.portal.client_credentials.client_id is defined %} + {{financial_services.consent.portal.client_credentials.client_id}} {% else %} consent_management_portal_client_id {% endif %} - {% if open_banking.consent.portal.client_credentials.client_secret is defined %} - {{open_banking.consent.portal.client_credentials.client_secret}} + {% if financial_services.consent.portal.client_credentials.client_secret is defined %} + {{financial_services.consent.portal.client_credentials.client_secret}} {% else %} consent_management_portal_client_secret {% endif %} - {% if open_banking.consent.portal.params.identity_server_base_url is defined %} - {{open_banking.consent.portal.params.identity_server_base_url}} + {% if financial_services.consent.portal.params.identity_server_base_url is defined %} + {{financial_services.consent.portal.params.identity_server_base_url}} {% else %} https://localhost:9446 {% endif %} - {% if open_banking.consent.portal.params.api_manager_server_base_url is defined %} - {{open_banking.consent.portal.params.api_manager_server_base_url}} + {% if financial_services.consent.portal.params.api_manager_server_base_url is defined %} + {{financial_services.consent.portal.params.api_manager_server_base_url}} {% else %} https://localhost:8243 {% endif %} + + {% if financial_services.consent.preserve_consent_link.enable is defined %} + {{financial_services.consent.preserve_consent_link.enable}} + {% else %} + 1000 + {% endif %} + - {% if open_banking.consent.idempotency.enabled is defined %} - {{open_banking.consent.idempotency.enabled}} + {% if financial_services.consent.idempotency.enabled is defined %} + {{financial_services.consent.idempotency.enabled}} {% else %} false {% endif %} - {% if open_banking.consent.idempotency.allowed_time_duration is defined %} - {{open_banking.consent.idempotency.allowed_time_duration}} + {% if financial_services.consent.idempotency.allowed_time_duration is defined %} + {{financial_services.consent.idempotency.allowed_time_duration}} {% else %} 1440 {% endif %} - - - {% if open_banking.dcr.validator is defined %} - {{open_banking.dcr.validator}} - {% else %} - com.wso2.openbanking.accelerator.identity.dcr.validation.DefaultRegistrationValidatorImpl - {% endif %} - {% if open_banking.dcr.jwks_url_sandbox is defined %} - {{open_banking.dcr.jwks_url_sandbox}} - {% else %} - https://keystore.openbankingtest.org.uk/0015800001HQQrZAAX/9b5usDpbNtmxDcTzs7GzKp.jwks - {% endif %} - {% if open_banking.dcr.jwks_url_production is defined %} - {{open_banking.dcr.jwks_url_production}} - {% else %} - https://keystore.openbanking.org.uk/keystore/openbanking.jwks - {% endif %} - - {% if open_banking.dcr.jwks_retriever.connection_timeout is defined %} - {{open_banking.dcr.jwks_retriever.connection_timeout}} - {% else %} - 0 - {% endif %} - {% if open_banking.dcr.jwks_retriever.read_timeout is defined %} - {{open_banking.dcr.jwks_retriever.read_timeout}} - {% else %} - 0 - {% endif %} - - - {% for iss in open_banking.dcr.regulatory_issuers.iss %} - {{iss.name}} - {% endfor %} - - {% if open_banking.dcr.applicationupdater is defined %} - {{open_banking.dcr.applicationupdater}} + {% if financial_services.consent.preserve_consent_link.enable is defined %} + {{financial_services.consent.preserve_consent_link.enable}} {% else %} - com.wso2.openbanking.accelerator.identity.listener.application.ApplicationUpdaterImpl + false {% endif %} - {% if open_banking.dcr.use_softwareIdForAppName is defined %} - {{open_banking.dcr.use_softwareIdForAppName}} - {% else %} - true - {% endif %} - {% if open_banking.dcr.jwks_endpoint_name is defined %} - {{open_banking.dcr.jwks_endpoint_name}} - {% else %} - software_jwks_endpoint - {% endif %} - {% if open_banking.dcr.append_registration_attributes_in_response is defined %} - {{open_banking.dcr.append_registration_attributes_in_response}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.scope is defined %} - {{open_banking.dcr.scope}} - {% else %} - cdr-registration - {% endif %} - {% if open_banking.dcr.registration_client_uri is defined %} - {{open_banking.dcr.registration_client_uri}} - {% else %} - https://localhost:8243/open-banking/0.1/register/ - {% endif %} - - - {% if open_banking.dcr.registration.software_environment_identification.ssa_property_name is defined %} - {{open_banking.dcr.registration.software_environment_identification.ssa_property_name}} - {% else %} - software_environment - {% endif %} - {% if open_banking.dcr.registration.software_environment_identification.ssa_property_value_for_sandbox is defined %} - {{open_banking.dcr.registration.software_environment_identification.ssa_property_value_for_sandbox}} - {% else %} - sandbox - {% endif %} - {% if open_banking.dcr.registration.software_environment_identification.ssa_property_value_for_production is defined %} - {{open_banking.dcr.registration.software_environment_identification.ssa_property_value_for_production}} - {% else %} - production - {% endif %} - - - {% if open_banking.dcr.registration.grant_types.required is defined %} - {{open_banking.dcr.registration.grant_types.required}} - {% else %} - true - {% endif %} - {% if open_banking.dcr.registration.grant_types.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.grant_types.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.issuer.required is defined %} - {{open_banking.dcr.registration.issuer.required}} - {% else %} - true - {% endif %} - {% if open_banking.dcr.registration.issuer.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.issuer.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.audience.required is defined %} - {{open_banking.dcr.registration.audience.required}} - {% else %} - true - {% endif %} - {% if open_banking.dcr.registration.audience.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.audience.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.token_endpoint_authentication.required is defined %} - {{open_banking.dcr.registration.token_endpoint_authentication.required}} - {% else %} - true - {% endif %} - {% if open_banking.dcr.registration.token_endpoint_authentication.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.token_endpoint_authentication.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.id_token_signed_response_alg.required is defined %} - {{open_banking.dcr.registration.id_token_signed_response_alg.required}} - {% else %} - true - {% endif %} - {% if open_banking.dcr.registration.id_token_signed_response_alg.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.id_token_signed_response_alg.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.software_statement.required is defined %} - {{open_banking.dcr.registration.software_statement.required}} - {% else %} - true - {% endif %} - {% if open_banking.dcr.registration.software_statement.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.software_statement.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.response_types.required is defined %} - {{open_banking.dcr.registration.response_types.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.response_types.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.response_types.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.callback_uris.required is defined %} - {{open_banking.dcr.registration.callback_uris.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.callback_uris.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.callback_uris.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.token_endpoint_auth_signing_alg.required is defined %} - {{open_banking.dcr.registration.token_endpoint_auth_signing_alg.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.token_endpoint_auth_signing_alg.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.token_endpoint_auth_signing_alg.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.software_id.required is defined %} - {{open_banking.dcr.registration.software_id.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.software_id.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.software_id.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.scope.required is defined %} - {{open_banking.dcr.registration.scope.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.scope.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.scope.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.application_type.required is defined %} - {{open_banking.dcr.registration.application_type.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.application_type.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.application_type.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.id_token_encryption_response_alg.required is defined %} - {{open_banking.dcr.registration.id_token_encryption_response_alg.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.id_token_encryption_response_alg.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.id_token_encryption_response_alg.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.id_token_encryption_response_enc.required is defined %} - {{open_banking.dcr.registration.id_token_encryption_response_enc.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.id_token_encryption_response_enc.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.id_token_encryption_response_enc.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.request_object_signing_algorithm.required is defined %} - {{open_banking.dcr.registration.request_object_signing_algorithm.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.request_object_signing_algorithm.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.request_object_signing_algorithm.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.tls_client_auth_subject_dn.required is defined %} - {{open_banking.dcr.registration.tls_client_auth_subject_dn.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.tls_client_auth_subject_dn.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.tls_client_auth_subject_dn.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.backchannel_token_delivery_mode.required is defined %} - {{open_banking.dcr.registration.backchannel_token_delivery_mode.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.backchannel_token_delivery_mode.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.backchannel_token_delivery_mode.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.backchannel_authentication_request_signing_alg.required is defined %} - {{open_banking.dcr.registration.backchannel_authentication_request_signing_alg.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.backchannel_authentication_request_signing_alg.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.backchannel_authentication_request_signing_alg.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.backchannel_client_notification_endpoint.required is defined %} - {{open_banking.dcr.registration.backchannel_client_notification_endpoint.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.backchannel_client_notification_endpoint.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.backchannel_client_notification_endpoint.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - {% if open_banking.dcr.registration.backchannel_user_code_parameter_supported.required is defined %} - {{open_banking.dcr.registration.backchannel_user_code_parameter_supported.required}} - {% else %} - false - {% endif %} - {% if open_banking.dcr.registration.backchannel_user_code_parameter_supported.allowed_values is defined %} - - {% for value in open_banking.dcr.registration.backchannel_user_code_parameter_supported.allowed_values %} - {{value}} - {% endfor %} - - {% endif %} - - - - - - {% if open_banking.signature_validation.allowed_algorithms is defined %} - {% for algorithm in open_banking.signature_validation.allowed_algorithms %} - {{algorithm.name}} - {% endfor %} + + + + {% if financial_services.identity.authentication_webapp.servlet_extension is defined %} + + {{financial_services.identity.authentication_webapp.servlet_extension}} + {% else %} - PS256 - ES256 + + org..wso2.financial.services.accelerator.consent.extensions.authservlet.impl.OFSDefaultAuthServletImpl + {% endif %} - - - - - {% if open_banking.sca.primaryauth.name is defined %} - {{open_banking.sca.primaryauth.name}} - {% else %} - BasicAuthenticator - {% endif %} - {% if open_banking.sca.primaryauth.display is defined %} - {{open_banking.sca.primaryauth.display}} - {% else %} - basic - {% endif %} - - {% if open_banking.sca.idp.name is defined %} - {{open_banking.sca.idp.name}} - {% endif %} - {% if open_banking.sca.idp.step is defined %} - {{open_banking.sca.idp.step}} - {% endif %} - - - {% if open_banking.analytics.elk is defined %} - {{open_banking.analytics.elk.enabled}} - {% else %} - false - {% endif %} - - - {% if open_banking.data_publishing.enable is defined %} - {{open_banking.data_publishing.enable}} - {% else %} - false - {% endif %} - - {% if open_banking.data_publishing.username is defined %} - {{open_banking.data_publishing.username}} - {% else %} - admin@wso2.com@carbon.super - {% endif %} - - {% if open_banking.data_publishing.password is defined %} - {{open_banking.data_publishing.password}} - {% else %} - wso2123 - {% endif %} - - {% if open_banking.data_publishing.server_url is defined %} - {{open_banking.data_publishing.server_url}} - {% else %} - {tcp://ANALYTICS_HOSTNAME:7612} - {% endif %} - {% if open_banking.data_publishing.auth_url is defined %} - {{open_banking.data_publishing.auth_url}} - {% endif %} - - {% if open_banking.data_publishing.protocol is defined %} - {{open_banking.data_publishing.protocol}} - {% else %} - Thrift - {% endif %} - {% if open_banking.data_publishing.pool_size is defined %} - {{open_banking.data_publishing.pool_size}} - {% else %} - 10 - {% endif %} - {% if open_banking.data_publishing.queue_size is defined %} - {{open_banking.data_publishing.queue_size}} - {% else %} - 32768 - {% endif %} - {% if open_banking.data_publishing.worker_thread_count is defined %} - {{open_banking.data_publishing.worker_thread_count}} - {% else %} - 10 - {% endif %} - {% if open_banking.data_publishing.pool_wait_time_Ms is defined %} - {{open_banking.data_publishing.pool_wait_time_Ms}} - {% else %} - 60000 - {% endif %} - - {% if open_banking.data_publishing.protocol == "Thrift" or open_banking.data_publishing.protocol is not defined%} - - {% if open_banking.data_publishing.thrift.publishing_timeout is defined %} - {{open_banking.data_publishing.thrift.publishing_timeout}} + + {% if financial_services.identity.consent_id_claim_name is defined %} + {{financial_services.identity.consent_id_claim_name}} {% else %} - 2000 + consent_id {% endif %} - - {% for stream in open_banking.data_publishing.thrift.stream %} - <{{stream.name}}> - {% for attribute in stream.attributes %} - {% if attribute.required is defined %} - {% set required = "{{attribute.required}}" %} - {% else %} - {% set required = "false" %} - {% endif %} - {% if attribute.type is defined %} - {% set type = "{{attribute.type}}" %} - {% else %} - {% set type = "string" %} - {% endif %} - - {% endfor %} - - {% endfor %} - - - {% endif %} - - {% if open_banking.data_publishing.auth_data_publisher is defined %} - {{open_banking.data_publishing.auth_data_publisher}} - {% else %} - com.wso2.openbanking.accelerator.authentication.data.publisher.extension.DefaultAuthDataPublisher - {% endif %} - - {% if open_banking.data_publishing.dispute_resolution.enable is defined %} - {{open_banking.data_publishing.dispute_resolution.enable}} + + {% if financial_services.identity.extensions.request_object_validator is defined %} + {{financial_services.identity.extensions.request_object_validator}} {% else %} - false + org..wso2.financial.services.accelerator.identity.auth.extensions.request.validator.OBRequestObjectValidator {% endif %} - {% if open_banking.data_publishing.dispute_resolution.publishNonErrorDisputeResolutionData is defined %} - {{open_banking.data_publishing.dispute_resolution.publishNonErrorDisputeResolutionData}} + {% if financial_services.identity.extensions.response_type_handler is defined %} + {{financial_services.identity.extensions.response_type_handler}} {% else %} - false + org..wso2.financial.services.accelerator.identity.auth.extensions.response.handler.impl.OBDefaultResponseTypeHandlerImpl {% endif %} - {% if open_banking.data_publishing.dispute_resolution.maxRequestBodyLength is defined %} - {{open_banking.data_publishing.dispute_resolution.maxRequestBodyLength}} + {% if financial_services.identity.extensions.claim_provider is defined %} + {{financial_services.identity.extensions.claim_provider}} {% else %} - 4096 + org..wso2.financial.services.accelerator.identity.claims.OBDefaultClaimProvider {% endif %} - {% if open_banking.data_publishing.dispute_resolution.maxResponseBodyLength is defined %} - {{open_banking.data_publishing.dispute_resolution.maxResponseBodyLength}} + + + {% if financial_services.identity.token.remove_user_store_domain_from_subject is defined %} + {{financial_services.identity.token.remove_user_store_domain_from_subject}} {% else %} - 4096 + false {% endif %} - {% if open_banking.data_publishing.dispute_resolution.maxHeaderLength is defined %} - {{open_banking.data_publishing.dispute_resolution.maxHeaderLength}} + {% if financial_services.identity.token.remove_tenant_domain_from_subject is defined %} + {{financial_services.identity.token.remove_tenant_domain_from_subject}} {% else %} - 2048 + false {% endif %} - - + + - {% if open_banking.http_connection_pool.max_connections is defined %} - {{open_banking.http_connection_pool.max_connections}} + {% if financial_services.http_connection_pool.max_connections is defined %} + {{financial_services.http_connection_pool.max_connections}} {% endif %} - {% if open_banking.http_connection_pool.max_connections_per_route is defined %} - {{open_banking.http_connection_pool.max_connections_per_route}} + {% if financial_services.http_connection_pool.max_connections_per_route is defined %} + {{financial_services.http_connection_pool.max_connections_per_route}} {% endif %} - - {% if open_banking.push_authorisation.expiry_time is defined %} - {{open_banking.push_authorisation.expiry_time}} - {% else %} - 60 - {% endif %} - {% if open_banking.push_authorisation.request_uri_sub_string is defined %} - {{open_banking.push_authorisation.request_uri_sub_string}} - {% else %} - ietf:params:oauth:request_uri - {% endif %} - - - - {% for subscribers in open_banking.service_activator.subscribers %} - {{subscribers.subscriber}} - {% endfor %} - - - - {% if open_banking.event.queue_size is defined %} - {{open_banking.event.queue_size}} - {% else %} - 32768 - {% endif %} - {% if open_banking.event.worker_thread_count is defined %} - {{open_banking.event.worker_thread_count}} - {% else %} - 10 - {% endif %} - - {% if open_banking.event.event_executors is defined %} - {% for executor in open_banking.event.event_executors %} - - {% endfor %} - {% else %} - {% if open_banking.event.event_executor is defined %} - - {% else %} - - {% endif %} - {% endif %} - - - - {% if open_banking.event.notifications.token_issuer is defined %} - {{open_banking.event.notifications.token_issuer}} - {% else %} - www.wso2.com - {% endif %} - {% if open_banking.event.notifications.number_of_sets_to_return %} - {{open_banking.event.notifications.number_of_sets_to_return}} - {% else %} - 5 - {% endif %} - {% if open_banking.event.notifications.event_creation_handler is defined %} - {{open_banking.event.notifications.event_creation_handler}} - {% else %} - com.wso2.openbanking.accelerator.event.notifications.service.handler.DefaultEventCreationServiceHandler - {% endif %} - {% if open_banking.event.notifications.event_polling_handler is defined %} - {{open_banking.event.notifications.event_polling_handler}} - {% else %} - com.wso2.openbanking.accelerator.event.notifications.service.handler.DefaultEventPollingServiceHandler - {% endif %} - {% if open_banking.event.notifications.event_subscription_handler is defined %} - {{open_banking.event.notifications.event_subscription_handler}} - {% else %} - com.wso2.openbanking.accelerator.event.notifications.service.handler.DefaultEventSubscriptionServiceHandler - {% endif %} - {% if open_banking.event.notifications.event_notification_generator is defined %} - {{open_banking.event.notifications.event_notification_generator}} - {% else %} - com.wso2.openbanking.accelerator.event.notifications.service.service.DefaultEventNotificationGenerator - {% endif %} - {% if open_banking.event.notifications.event_subscription_handler is defined %} - {{open_banking.event.notifications.event_subscription_handler}} - {% else %} - com.wso2.openbanking.accelerator.event.notifications.service.handler.DefaultEventSubscriptionServiceHandler - {% endif %} - - {% if open_banking.event.notifications.set_sub_claim_included is defined%} - {{open_banking.event.notifications.set_sub_claim_included}} - {% else %} - true - {% endif %} - {% if open_banking.event.notifications.set_txn_claim_included is defined %} - {{open_banking.event.notifications.set_txn_claim_included}} - {% else %} - true - {% endif %} - {% if open_banking.event.notifications.set_toe_cliam_included is defined %} - {{open_banking.event.notifications.set_toe_cliam_included}} - {% else %} - true - {% endif %} - - - - {% for worker in open_banking.identity.authentication.worker %} - - {% endfor %} - - - {% if open_banking.event.notifications.realtime.enable is defined %} - {{open_banking.event.notifications.realtime.enable}} - {% else %} - false - {% endif %} - {% if open_banking.event.notifications.realtime.periodic_cron_expression is defined %} - {{open_banking.event.notifications.realtime.periodic_cron_expression}} - {% else %} - 0 0/1 0 ? * * * - {% endif %} - {% if open_banking.event.notifications.realtime.request_timeout is defined %} - {{open_banking.event.notifications.realtime.request_timeout}} - {% else %} - 60 - {% endif %} - {% if open_banking.event.notifications.realtime.maximum_retry_count is defined %} - {{open_banking.event.notifications.realtime.maximum_retry_count}} - {% else %} - 5 - {% endif %} - {% if open_banking.event.notifications.realtime.initial_retry_waiting_time is defined %} - {{open_banking.event.notifications.realtime.initial_retry_waiting_time}} - {% else %} - 60 - {% endif %} - {% if open_banking.event.notifications.realtime.retry_function is defined %} - {{open_banking.event.notifications.realtime.retry_function}} - {% else %} - EX - {% endif %} - {% if open_banking.event.notifications.realtime.circuit_breaker_open_timeout is defined %} - {{open_banking.event.notifications.realtime.circuit_breaker_open_timeout}} - {% else %} - 600 - {% endif %} - {% if open_banking.event.notifications.realtime.thread_pool_size is defined %} - {{open_banking.event.notifications.realtime.thread_pool_size}} - {% else %} - 20 - {% endif %} - {% if open_banking.event.notifications.realtime.event_notification_request_generator is defined %} - {{open_banking.event.notifications.realtime.event_notification_request_generator}} - {% else %} - com.wso2.openbanking.accelerator.event.notifications.service.realtime.service.DefaultRealtimeEventNotificationRequestGenerator - {% endif %} - - - {% if open_banking.psu_federated_auth.enabled %} - {{open_banking.psu_federated_auth.enabled}} - {% else %} - false - {% endif %} - {% if open_banking.psu_federated_auth.idp_name is defined %} - {{open_banking.psu_federated_auth.idp_name}} - {% else %} - - {% endif %} - diff --git a/financial-services-accelerator/accelerators/fs-is/pom.xml b/financial-services-accelerator/accelerators/fs-is/pom.xml index 6cd187c9..b8fc7dc6 100644 --- a/financial-services-accelerator/accelerators/fs-is/pom.xml +++ b/financial-services-accelerator/accelerators/fs-is/pom.xml @@ -29,17 +29,17 @@ ../pom.xml - wso2-financial-services-iam-accelerator + wso2-fsiam-accelerator pom WSO2 Financial Services - Identity Server Accelerator Module http://wso2.org - + org.apache.maven.plugins maven-clean-plugin - 3.1.0 + ${maven.clean.plugin.version} @@ -54,19 +54,10 @@ ${project.basedir}/carbon-home/repository/components/dropins **/classmate-1.5.1.jar - **/org.wso2.carbon.identity.oauth2.token.handler.clientauth.jwt-2.3.9.jar - **/quartz_2.1.1.wso2v1.jar - **/org.wso2.carbon.identity.application.authenticator.push-0.1.1.jar - **/org.wso2.carbon.identity.application.authenticator.push.common-0.1.1.jar - **/org.wso2.carbon.identity.application.authenticator.push.device.handler-0.1.1.jar ${project.basedir}/carbon-home/repository/deployment/server/webapps/api/WEB-INF/lib - - **/org.wso2.carbon.identity.api.user.push.device.common-0.1.1.jar - **/org.wso2.carbon.identity.api.user.push.device.handler.v1-0.1.1.jar - @@ -83,7 +74,7 @@ org.apache.maven.plugins maven-antrun-plugin - 1.8 + ${maven.antrun.plugin.version} create-solution @@ -93,9 +84,9 @@ + dir="../../components/org.wso2.financial.services.accelerator.identity.extensions/target"> + regex="org.wso2.financial.services.accelerator.identity.extensions-(\d.*?)\.jar$"/> @@ -107,85 +98,30 @@ + dir="../../components/org.wso2.financial.services.accelerator.consent.mgt.service/target"> + dir="../../components/org.wso2.financial.services.accelerator.consent.mgt.extensions/target"> - - - - - - - - - - + regex="org.wso2.financial.services.accelerator.consent.mgt.extensions-(\d.*?)\.jar$"/> + dir="../../components/org.wso2.financial.services.accelerator.consent.mgt.dao/target"> - - - - - - - - - - - - - - - - + regex="org.wso2.financial.services.accelerator.consent.dao-(\d.*?)\.jar$"/> - - - - - - - - - - - - - - - - - + + diff --git a/financial-services-accelerator/accelerators/fs-is/repository/conf/configure.properties b/financial-services-accelerator/accelerators/fs-is/repository/conf/configure.properties index 52bd4ac5..642dad63 100644 --- a/financial-services-accelerator/accelerators/fs-is/repository/conf/configure.properties +++ b/financial-services-accelerator/accelerators/fs-is/repository/conf/configure.properties @@ -33,12 +33,10 @@ DB_PASS=root DB_HOST=localhost DB_DRIVER=com.mysql.jdbc.Driver -DB_APIMGT=openbank_apimgtdb -DB_USER_STORE=openbank_userdb -DB_AM_CONFIG=openbank_am_configdb -DB_GOV=openbank_govdb -DB_IS_CONFIG=openbank_iskm_configdb -DB_OPEN_BANKING_STORE=openbank_openbankingdb -DB_OB_REPORTING=openbank_ob_reporting_statsdb -DB_OB_REPORTING_SUMMARIZED=openbank_ob_reporting_summarizeddb +DB_APIMGT=fs_apimgtdb +DB_USER_STORE=fs_userdb +DB_AM_CONFIG=fs_am_configdb +DB_GOV=fs_govdb +DB_IS_CONFIG=fs_iskm_configdb +DB_FS_STORE=fs_consentdb diff --git a/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/main/java/org/wso2/financial/services/accelerator/common/config/FinancialServicesConfigParser.java b/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/main/java/org/wso2/financial/services/accelerator/common/config/FinancialServicesConfigParser.java index adabd8dc..0f3504f2 100644 --- a/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/main/java/org/wso2/financial/services/accelerator/common/config/FinancialServicesConfigParser.java +++ b/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/main/java/org/wso2/financial/services/accelerator/common/config/FinancialServicesConfigParser.java @@ -475,13 +475,13 @@ public String getAuthServletExtension() { public String getJWKSConnectionTimeOut() { Optional source = getConfigurationFromKeyAsString( - FinancialServicesConstants.DCR_JWKS_CONNECTION_TIMEOUT); + FinancialServicesConstants.JWKS_CONNECTION_TIMEOUT); return source.map(String::trim).orElse("3000"); } public String getJWKSReadTimeOut() { - Optional source = getConfigurationFromKeyAsString(FinancialServicesConstants.DCR_JWKS_READ_TIMEOUT); + Optional source = getConfigurationFromKeyAsString(FinancialServicesConstants.JWKS_READ_TIMEOUT); return source.map(String::trim).orElse("3000"); } diff --git a/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/main/java/org/wso2/financial/services/accelerator/common/constant/FinancialServicesConstants.java b/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/main/java/org/wso2/financial/services/accelerator/common/constant/FinancialServicesConstants.java index 81c24d7f..ccc7707d 100644 --- a/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/main/java/org/wso2/financial/services/accelerator/common/constant/FinancialServicesConstants.java +++ b/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/main/java/org/wso2/financial/services/accelerator/common/constant/FinancialServicesConstants.java @@ -32,8 +32,8 @@ public class FinancialServicesConstants { public static final String DCR_CONFIG_TAG = "DCR"; public static final String COMMON_IDENTITY_CACHE_ACCESS_EXPIRY = "Common.Identity.Cache.CacheAccessExpiry"; public static final String COMMON_IDENTITY_CACHE_MODIFY_EXPIRY = "Common.Identity.Cache.CacheModifiedExpiry"; - public static final String DCR_JWKS_CONNECTION_TIMEOUT = "DCR.JWKS-Retriever.ConnectionTimeout"; - public static final String DCR_JWKS_READ_TIMEOUT = "DCR.JWKS-Retriever.ReadTimeout"; + public static final String JWKS_CONNECTION_TIMEOUT = "JWKS-Retriever.ConnectionTimeout"; + public static final String JWKS_READ_TIMEOUT = "JWKS-Retriever.ReadTimeout"; public static final String DCR_SOFTWARE_ENV_IDENTIFICATION_PROPERTY_NAME = "DCR.RegistrationRequestParams.SoftwareEnvironmentIdentification.PropertyName"; public static final String DCR_SOFTWARE_ENV_IDENTIFICATION_VALUE_FOR_SANDBOX = diff --git a/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/test/java/org/wso2/financial/services/accelerator/common/test/FSConfigParserTests.java b/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/test/java/org/wso2/financial/services/accelerator/common/test/FSConfigParserTests.java index 964aa37b..1f4cc70d 100644 --- a/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/test/java/org/wso2/financial/services/accelerator/common/test/FSConfigParserTests.java +++ b/financial-services-accelerator/components/org.wso2.financial.services.accelerator.common/src/test/java/org/wso2/financial/services/accelerator/common/test/FSConfigParserTests.java @@ -141,7 +141,7 @@ public void testGetJWKSConnectionTimeout() { String connectionTimeOut = FinancialServicesConfigParser.getInstance() .getJWKSConnectionTimeOut(); - Assert.assertEquals(connectionTimeOut, "1000"); + Assert.assertEquals(connectionTimeOut, "3000"); } @Test(priority = 13) diff --git a/pom.xml b/pom.xml index 41d64619..9b0ef11f 100644 --- a/pom.xml +++ b/pom.xml @@ -560,6 +560,8 @@ 2.22.2 4.8.2.0 1.12.0 + 3.1.0 + 1.8 1.2 3.4