Configuration
Configuring DCR in WSO2 Identity Server
-
Open the
<IS_HOME>/repository/conf/deployment.tomlfile. -
Configure the issuer (iss) of the SSA in the following tag. If not specified, the application is considered a non-regulatory application.
[[open_banking.dcr.regulatory_issuers.iss]]name = "cdr-register" -
If you have modified the Application Listener interface, for example, adding OAuth 2.0 properties or for data publishing requirements, the Application Listener invokes methods that are overridden from a class. Configure the following tag with the name of the class that is extended to do so.
[open_banking.dcr]applicationupdater = "com.wso2.openbanking.cds.identity.listener.application.CDSApplicationUpdaterImpl" -
The following configuration sets the software id as the name of the application. By default, this configuration is set to
true.[open_banking.dcr]use_softwareIdForAppName = true -
Configure the name of the claim regarding the jwks endpoint that is issued for the SSA. You can refer to the SSA for this value. For example, the
software_jwks_endpointclaim.[open_banking.dcr]jwks_endpoint_name = "jwks_uri" -
Configure the names of the primary authenticator to be engaged in the authentication flow and the identity provider if SMS OTP is used as the secondary authentication method.
[open_banking.sca.primaryauth]name = "IdentifierExecutor"display = "ob-identifier-first" -
Configure the timeout values when validating the signature of the request.
[open_banking.dcr.jwks_retriever]connection_timeout = 3000read_timeout = 3000
Configuring DCR in WSO2 API Manager
-
Open the
<APIM_HOME>/repository/conf/deployment.tomlfile. -
If you want to change the internal REST API endpoints of the API Manager configure the following tags. By default, the API Manager 4.1 endpoints are configured.
[[open_banking.dcr.apim_rest_endpoints]]app_creation = "api/am/devportal/v2/applications"key_generation = "api/am/devportal/v2/applications/application-id/map-keys"api_retrieve = "api/am/devportal/v2/apis"api_subscribe = "api/am/devportal/v2/subscriptions/multiple" -
Configure the hostname of the API Manager server for the token endpoint.
[open_banking.dcr]token_endpoint = https://<APIM_HOST>:9443/oauth2/token -
The following configuration sets the software id as the name of the application. By default, this configuration is set to
true.[open_banking.dcr]use_softwareIdForAppName = true -
Configure the claim name in the SSA that mentions the software. If the
use_softwareIdForAppNameconfiguration is set tofalse, the name of the application is set using the value of the given claim.[open_banking.dcr]app_name_claim = "client_name" -
Configure the name of the claim regarding the jwks endpoint that is issued for the SSA. You can refer to the SSA for this value. For example, the
software_jwks_endpointclaim.[open_banking.dcr]jwks_endpoint_name = "jwks_uri" -
By default, a JWT is expected at the DCR endpoint. If you want to send a json payload, add the following configurations and set the value to
false.[open_banking.dcr]isRequestJWT = false -
Configure the names of all regulatory applications. By default, the DCR API is configured.
[[open_banking.dcr.regulatory_api]]api_name = "CDRDynamicClientRegistrationAPI"
Configuring a custom DCR validator
-
Open the
<IS_HOME>/repository/conf/deployment.tomlfile. -
Find the following configuration and replace that with your extended class. By default the
CDSRegistrationValidatorImplclass is configured as follows:[open_banking.dcr]validator = "com.wso2.openbanking.cds.identity.dcr.validation.CDSRegistrationValidatorImpl" -
Configure the jwks endpoint that is used for validating the SSA signature.
[open_banking.dcr]jwks_url_sandbox = "https://keystore.openbankingtest.org.uk/0015800001HQQrZAAX/0015800001HQQrZAAX.jwks"jwks_url_production = "https://keystore.openbankingtest.org.uk/0015800001HQQrZAAX/0015800001HQQrZAAX.jwks" -
Configure the algorithms that are allowed during signature validation. These algorithms are used for token endpoint authentication assertion signature, request object signature, and id token signature validations.
[[open_banking.signature_validation.allowed_algorithms]]name = "PS256"
-
WSO2 Open Banking provides the capability to configure the parameters and the values allowed by Open Banking CDS.
-
By default, the following values are configured as mandatory parameters. To configure the allowed values for them, open the
<IS_HOME>/repository/conf/deployment.tomlfile and add the following tags.[open_banking.dcr.registration.issuer]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.audience]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.token_endpoint_authentication]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.id_token_signed_response_alg]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.software_statement]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.grant_types]allowed_values = ["value1, value2, value3”]- If you want to make any of the above parameters optional, add the
requiredtag and set it tofalse. For example:[open_banking.dcr.registration.issuer]required = falseallowed_values = ["accounts"]
- If you want to make any of the above parameters optional, add the
-
-
By default, the following values are configured as optional parameters. To configure the allowed values for them:
-
Open the
<IS_HOME>/repository/conf/deployment.tomlfile, add the relevant tags and configure the values allowed.[open_banking.dcr.registration.scope]allowed_values = ["accounts"][open_banking.dcr.registration.application_type]allowed_values = ["web"][open_banking.dcr.registration.response_types]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.callback_uris]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.token_endpoint_auth_signing_alg]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.software_id]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.id_token_encryption_response_alg]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.id_token_encryption_response_enc]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.request_object_signing_algorithm]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.tls_client_auth_subject_dn]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.backchannel_token_delivery_mode]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.backchannel_authentication_request_signing_alg]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.backchannel_client_notification_endpoint]allowed_values = ["value1, value2, value3”][open_banking.dcr.registration.backchannel_user_code_parameter_supported]allowed_values = ["value1, value2, value3”]- If you want to make any of the above parameters mandatory, add the
requiredtag and set it totrue. For example:[open_banking.dcr.registration.scope]required = trueallowed_values = ["accounts"]
- If you want to make any of the above parameters mandatory, add the
-
Was this page helpful?