This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Dynamic Client Registration v3.2

Before you begin:

Deploy the Dynamic Client Registration (DCR) API v3.2. 

 Click here to see how to deploy the DCR API

To use Dynamic Client Registration, a TPP has to register at the Open Banking Directory and obtain an SSA and relevant certificates.

  1. Sign in to the API Publisher Portal (https://<WSO2_OB_APIM_HOST>:9443/publisher) with creator/publisher privileges.
  2. In the  APIs tab, select  CREATE NEW API > I Have an Existing REST API  
  3. Set the  Input Type  to  OpenAPI File
  4. Click  BROWSE FILE TO UPLOAD and select the <WSO2_OB_APIM_HOME>/repository/resources/finance/apis/openbanking.org.uk/DynamicClientRegistration/3.2/dynamic-client-registration-swagger.yaml file.
  5. Click Next .
  6. Leave the Endpoint field empty as it is.
  7. Set the business plan to Unlimited : Allows unlimited requests unless you want to limit the requests. 

  8. Click  Create to create the API.
  9. Once you get the message that the API is successfully updated, go to Runtime Configurations using the left menu panel.
  10. Click the edit button under Request > Message Mediation.
  11. Now, select the Custom Policy option.
  12. Upload the <WSO2_OB_APIM_HOME>/repository/resources/finance/apis/openbanking.org.uk/DynamicClientRegistration/3.2/dcr-dynamic-endpoint-insequence-3.2.xml file and click SELECT.
  13. Scroll down and click  SAVE.
  14. Go to Endpoints using the left menu panel.
  15. Select Dynamic Endpoint
  16. Select the endpoint types; Production Endpoint/Sandbox Endpoint.
  17. Click Save.
  18. Now, go to Properties using the left menu panel.
  19. Click Add New Property.
  20. Add the following properties and click  the Add button to save the values.

    Property Name

    Property Value

    ob-specuk
    ob-api-typedcr
    ob-api-version 3.2

  21. Click SAVE.
  22. Go back to Overview using the left menu panel.
  23. Click PUBLISH.
  24. The published DCR v0.1 API is available in the Developer Portal at https://<WSO2_OB_APIM_HOST>:9443/devportal.

According to the OBIE, the Account Servicing Payment Service Providers (ASPSPs) need to make sure that the TPPs can be registered in a seamless and ideally, a fully automated process. To avoid any obstacles that may occur, the OBIE requires the ASPSPs to provide the TPP responses real-time once the registration is processed. The Dynamic Client Registration (DCR) endpoint is capable of dynamically registering the clients with the ASPSP when the client sends a registration request with its metadata. This results in a registration response that includes a client identifier and the client metadata values registered for the client.

You can find the REST API documentation for Dynamic Client Registration v3.2 here.


This document explains how to use the Dynamic Client Registration API with WSO2 Open Banking.  


Configuring dynamic client registration

Follow the steps below to configure the DCR API v3.2 in WSO2 Open Banking.

Uploading certificate to the client trust store

You can use the OB certificates or eIDAS certificates for DCR.

[Back To Top]


Configuring deployment.toml 

Follow the steps below to configure the DCR API v3.2 in WSO2 Open Banking.

  1. Configuring WSO2 Open Banking Identity and Access Management module:
    1. Open the   <WSO2_OB_IAM_HOME>/repository/conf/deployment.toml   file. 
    2. To display the DCR endpoint in OpenID Connect Discovery (https://<WSO2_OB_IAM_HOST>:8243/.well-known/openid-configuration), update the value of the oauth2_dcr_url property: 

      [oauth.endpoints]
      oauth2_dcr_url = "${carbon.protocol}://<WSO2_OB_APIM_HOST>:8243/open-banking/v3.2/register"
  2. Configuring WSO2 Open Banking API Manager
    1. Open the   <WSO2_OB_APIM_HOME>/repository/conf/deployment.toml   file. 
    2. The following property is to validate the policy, client, terms of service, logo URIs.  To validate these, set this to  true By default, this is set to false.

      [open_banking.dcr]
      uri_validation.enable = false
    3. The following property is to validate the hostnames of policy, client, terms of service, logo URIs against the hostname of redirect URIs.    To validate these, set this to  true By default, this is set to false.

      [open_banking.dcr]
      hostname_validation.enable = false
    4. The following property is to use  SoftwareID  in SSA as the name of the application.  By default, this is set to true

      [open_banking.dcr]
      software_id_as_application_name.enable = true

      Make sure to keep the software_id_as_application_name.enable property always set to true.

    5. Add the following configurations to validate the JTI claims in the JWT and the SSA in a DCR request:

      This is only available as a WSO2 Update from WSO2 Open Banking API Manager Level 2.0.0.85 and WSO2 Open Banking Identity Server  Level 2.0.0.93 onwards. For more information on updating WSO2 Open Banking, see Updating WSO2 Products.

      [open_banking.dcr]
      request_jti_validation.enable = true
      ssa_jti_validation.enable = true
      jti_cache_expiry_time = 60

To reflect the configuration changes, restart the servers with the API Management and Identity and Access Management modules.

[Back To Top]


Registering an application 

If your application has one or more Callback URLs that exceed the default sizes, increase the column sizes of the CALLBACK_URL columns.

The Callback URLs are stored in the database as follows:

DatabaseTableColumnDefault Size
openbank_apimgtdbAM_APPLICATIONCALLBACK_URLvarchar 512
openbank_apimgtdbIDN_OAUTH_CONSUMER_APPSCALLBACK_URLvarchar 1024

The API allows the TPP to request the ASPSP to register a new client. The process is as follows:

  1. The TPP sends a registration request,
    1. This is a POST request including a Software Statement Assertion (SSA) as a claim in the payload. This SSA contains client metadata.

      The SSA should be obtained from the Open Banking Directory by the TPP. It is signed JWT issued by the Open Banking directory.

    2. In order to try out the flow with the eIDAS approach, the TPPs have to be registered in a Qualified Trust Service Provider (QTSP). You may use the QSeal/OBSeal certificates and QWAC/OBWAC certificates instead of the signing and transport certificates, in the given order. For more information, see eIDAS Implementation for UK.

      For testing purposes, you may use the attached Signing certificates and Transport certificates, if you have configured the OB certificates:

      • To modify the request payload, use the signing certificate and the private keys attached here.

      • When invoking the API endpoints, use the transport certificates available here.

    3. The automated DCR process is carried out by calling a synapse API in the gateway. The registration request relies on Mutual TLS authentication for TPP authentication. 
    4. For the DCR endpoints, it is advised to use the CA certificate.  To obtain the CA certificate, follow the steps below:
      1. Copy the content of your SSL certificate to a file named certfile using the following command. 

        openssl s_client -connect <WSO2_OB_APIM_HOST>:8243 |tee certfile
      2. Use the generated certfile as the cacert parameter in the request.

  2. An example request sent to the DCR registration endpoint is shown below:

    curl -X POST \
      https://<WSO2_OB_APIM_HOST>:8243/open-banking/v3.2/register \
      -H 'Content-Type: application/jwt'  \
      --cert <TRANSPORT_PUBLIC_KEY_FILE_PATH> --key <TRANSPORT_PRIVATE_KEY_FILE_PATH> \
      --cacert certfile \
      -d eyJ0eXAiOiJKV1QiLCJhbGciOiJQUzI1NiIsImtpZCI6IkR3TUtkV01tajdQV2ludm9xZlF5WFZ6eVo2USJ9.eyJpc3MiOiI5YjV1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TmROY21UUG93MkxWU3hQOVF1c040dldwRU1VTmQ5cHcifQ.kq8UsDUcb6Ee55w4U4JhiifyUB0sSiTAnobLV1bwujfS2msdUfxDHqVjyrvx4NvPd54sXg3_k1EIRHLT4vT-zUkojqtWiB_v2ndo5UqvPUrIFoqY0IQznKBfD6cLlGQ0laYqxm_GJWAEdEv_O8Ggw_z1DMiZZRHF9Oln9zZtT95JcGeJ8JCQVDkaX_AM-fZrVaixfD4iBfy-n4H6LHCy94c1DrCM9wEGr7XfHLAVNdZe2Qbyjf1sVEPukK_ccw4AYcWUo3UJQ2WIKxZL4fBmb_3Z0ez9k31k6in86Hg4tHO9itXSVJvvzn8oAaYXXQrxfk4N1CojV3zk1bkhy6In3Q

    The payload is a signed JWT payload. To sign it, use the signing certificate issued by the Open Banking Directory. The kid parameter of the header should match the values in the kid of the signing certificate provided by the Open Banking Directory. 

     Click here to see the format of the JWT payload once decoded.
    {
      "typ": "JWT",
      "alg": "PS256",
      "kid": "DwMKdWMmj7PWinvoqfQyXVzyZ6Q"
    }
    {
      "iss": "9b5usDpbNtmxDcTzs7GzKp",
      "iat": 1601982042,
      "exp": 1607252442,
      "jti": "1601982046",
      "aud": "https://localhost:8243/token",
      "scope": "accounts payments",
      "token_endpoint_auth_method": "private_key_jwt",
      "grant_types": [
        "authorization_code",
        "refresh_token"
      ],
      "response_types": [
        "code id_token"
      ],
      "id_token_signed_response_alg": "PS256",
      "request_object_signing_alg": "PS256",
      "software_id": "9b5usDpbNtmxDcTzs7GzKp",
      "application_type": "web",
      "redirect_uris": [
        "https://wso2.com"
      ],
      "token_endpoint_auth_signing_alg": "PS256",
      "software_statement": "eyJhbGciOiJQUzI1NiIsImtpZCI6Ikh6YTl2NWJnREpjT25oY1VaN0JNd2JTTF80TlYwZ1NGdklqYVNYZEMtMWM9IiwidHlwIjoiSldUIn0.eyJpc3MiOiJPcGVuQmFua2luZyBMdGQiLCJpYXQiOjE1OTIzNjQ1NjgsImp0aSI6IjNkMWIzNTk1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hhbGZfb2Zfb3JnIjoiV1NPMiBPcGVuIEJhbmtpbmcifQ.CA14ogdcpNwoHiIJoz6mTxNpM2wRrqiZAcbmK0RnDx2GDN3BHYnZG0Eq6VgyPbPrcRyfWl8jQs2ESsWc5JSBwejHbvpnx7kVByYkG44dhozaPANEZltNj4M912CgHeKPd_d0uID8dIUq8_s2kYMsoCccBqGyFTIymVK01HX_X_-T7npG_ovE8CLgilMFkijy5PiFC83hopxixeQfRgdmHCR_1boksbFDK3RPIEe5PiODvX8vlWB8iUGy7PGzZ0ikXBD0lx9p1AJEyYF3x1pCjsSH8tJC5E5CG0xZLQPPkT3A_SpjiUh5ElNdNcmTPow2LVSxP9QusN4vWpEMUNd9pw"
    }
    <signature>


    Include the following claims in the body of the request payload;

    ClaimDescriptionSource SpecificationOptionalComments
    issRequest issuer (the TPP)[RFC7519]NO
    iatTime of issuance of the request[RFC7519]NO
    expRequest expiration time[RFC7519]NO
    audRequest audience (the ASPSP)[RFC7519]NO
    jtiThe JWT ID[RFC7519]NO
    redirect_urisRegistered URIs the TPP uses to interact with the ASPSP AS[OIDC-R]NOMust match or be a subset of the software_redirect_uris claim in the SSA.


    token_endpoint_auth_method

    Specifies which token endpoint authentication method the TPP wants to use[RFC7591]NO

    private_key_jwt: If requested, the OP should extract the TPPs JWKS location from the included software statement assertion.

    tls_client_auth and private_key_jwt are the only FAPI compliant authentication methods. WSO2 Open Banking supports both these methods.

    grant_typesA JSON array specifying what the TPP can request to be supplied to the token endpoint as an exchange for an access token[RFC7591]NO
    response_typesA JSON array specifying what the TPP can request to be returned from the ASPSP authorization endpoint[RFC7591]YESA JSON array specifying what the TPP can request to be returned from the ASPSP authorisation endpoint. ASPSPs MAY reject the request if any of the requested response_types are not supported by it (as advertised at its .well-known end-points) Defaults to code id_token if not specified.


    software_id

    The application name that is mentioned as software_client_id in the SSA.[RFC7591]YESIf specified, the software_id in the request must match the software_id specified in the SSA. ASPSPs can choose to allow multiple registrations for a given software client name and may take the software_id from either the SSA or the TPP as a hint.


    scope


    The scopes requested by the client (if not specified, default scopes are assigned by the AS)

    [RFC7591]YES

    The minimum scope should be openid + whatever scopes are appropriate for the PSD2 role of the software.

    The scopes are space-delimited values.

    software_statementThe SSA issued by Open Banking identifier[RFC7519]NO
    application_typeSpecifies whether the application type is web or mobile[OIDC-R]NOMust be web, if specified.
    id_token_signed_response_algThe algorithm with which the TPP expects to sign the id_token if an id_token is returned[OIDC-R]NOSupported values must comply with [FAPI-RW] Section 8.6.

    request_object_signing_alg


    The algorithm with which the TPP expects to sign the request object if a request object is part of the authorization request sent to the ASPSP.[OIDC-R]NOSupported values must comply with [FAPI-RW] Section 8.6.

    The payload contains an SSA. 

     Click here to see a decoded SSA...
    {
      "alg": "PS256",
      "kid": "Hza9v5bgDJcOnhcUZ7BMwbSL_4NV0gSFvIjaSXdC-1c=",
      "typ": "JWT"
    }
    {
      "iss": "OpenBanking Ltd",
      "iat": 1592364568,
      "jti": "3d1b3595efac4e36",
      "software_environment": "sandbox",
      "software_mode": "Test",
      "software_id": "9b5usDpbNtmxDcTzs7GzKp",
      "software_client_id": "9b5usDpbNtmxDcTzs7GzKp",
      "software_client_name": "WSO2 Open Banking TPP (Sandbox)",
      "software_client_description": "This TPP Is created for testing purposes. ",
      "software_version": 1.5,
      "software_client_uri": "https://wso2.com",
      "software_redirect_uris": [
        "https://wso2.com"
      ],
      "software_roles": [
        "AISP",
        "PISP"
      ],
      "organisation_competent_authority_claims": {
        "authority_id": "OBGBR",
        "registration_id": "Unknown0015800001HQQrZAAX",
        "status": "Active",
        "authorisations": [
          {
            "member_state": "GB",
            "roles": [
              "AISP",
              "PISP"
            ]
          },
          {
            "member_state": "IE",
            "roles": [
              "AISP",
              "PISP"
            ]
          },
          {
            "member_state": "NL",
            "roles": [
              "AISP",
              "PISP"
            ]
          }
        ]
      },
      "software_logo_uri": "https://wso2.com/wso2.jpg",
      "org_status": "Active",
      "org_id": "0015800001HQQrZAAX",
      "org_name": "WSO2 (UK) LIMITED",
      "org_contacts": [
        {
          "name": "Technical",
          "email": "mail@wso2.com",
          "phone": "+94771231234",
          "type": "Technical"
        },
        {
          "name": "Business",
          "email": "mail1@wso2.com",
          "phone": "+94771231235",
          "type": "Business"
        }
      ],
      "org_jwks_endpoint": "https://keystore.openbankingtest.org.uk/0015800001HQQrZAAX/0015800001HQQrZAAX.jwks",
      "org_jwks_revoked_endpoint": "https://keystore.openbankingtest.org.uk/0015800001HQQrZAAX/revoked/0015800001HQQrZAAX.jwks",
      "software_jwks_endpoint": "https://keystore.openbankingtest.org.uk/0015800001HQQrZAAX/9b5usDpbNtmxDcTzs7GzKp.jwks",
      "software_jwks_revoked_endpoint": "https://keystore.openbankingtest.org.uk/0015800001HQQrZAAX/revoked/9b5usDpbNtmxDcTzs7GzKp.jwks",
      "software_policy_uri": "https://wso2.com",
      "software_tos_uri": "https://wso2.com",
      "software_on_behalf_of_org": "WSO2 Open Banking"
    }
  3. The ASPSP validates the SSA based on the specifications provided in the Open Banking OpenID Dynamic Client (OIDC) Registration specification.
  4. The ASPSP registers the client application using the metadata sent in the SSA.

    • If client creation is successful, the ASPSP responds with a JSON payload that describes the client that was created. The TPP can then use the client to access resources on the ASPSP's resource server. 

    • If client creation is unsuccessful, the ASPSP responds with an error payload.

      A sample response is given below:

      {
         "client_id":"kbLnJJ_uQL2Ye68uaCRbPIJOR4Ua",
         "client_id_issued_at":1601991722,
         "redirect_uris":[
            "https://wso2.com"
         ],
         "grant_types":[
            "authorization_code",
            "refresh_token"
         ],
         "application_type":"web",
         "id_token_signed_response_alg":"PS256",
         "token_endpoint_auth_signing_alg":"PS256",
         "request_object_signing_alg":"PS256",
         "scope":"accounts payments",
         "software_id":"9b5usDpbNtmxDcTzs7GzKp",
         "client_secret":"4nvgJQ0eSffFTtlLrfp0DqIfoLsa",
         "client_secret_expires_at":0,
         "token_endpoint_auth_method":"private_key_jwt",
         "response_types":[
            "code id_token"
         ],
         "software_statement":"eyJhbGciOiJQUzI1NiIsImtpZCI6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NXVzRHBiTnRteERjVHpzN0d6S3AuandrcyIsInNvZnR3YXJlX3BvbGljeV91cmkiOiJodHRwczovL3dzbzIuY29tIiwic29mdHdhcmVfdG9zX3VyaSI6Imh0dHBzOi8vd3NvMi5jb20iLCJzb2Z0d2FyZV9vbl9iZWhhbGZfb2Zfb3JnIjoiV1NPMiBPcGVuIEJhbmtpbmcifQ.CA14ogdcpNwoHiIJoz6mTxNpM2wRrqiZAcbmK0RnDx2GDN3BHYnZG0Eq6VgyPbPrcRyfWl8jQs2ESsWc5JSBwejHbvpnx7kVByYkG44dhozaPANEZltNj4M912CgHeKPd_d0uID8dIUq8_s2kYMsoCccBqGyFTIymVK01HX_X_-T7npG_ovE8CLgilMFkijy5PiFC83hopxixeQfRgdmHCR_1boksbFDK3RPIEe5PiODvX8vlWB8iUGy7PGzZ0ikXBD0lx9p1AJEyYF3x1pCjsSH8tJC5E5CG0xZLQPPkT3A_SpjiUh5ElNdNcmTPow2LVSxP9QusN4vWpEMUNd9pw"
      }
  5. Generate a Client Credentials grant access token for the application using the following command: 

      Click here to see how to generate the client assertion...

[Back To Top]


Retrieving an application 

The API allows the TPP to retrieve the details for a client that has already been registered. The request relies on Mutual TLS authentication and application access token (Client Credentials grant type) for TPP authentication. 

The request has one path parameter named ClientId . It specifies the ClientId  of the application that the TPP wants to retrieve details.

  • If the request is successful and the identifier( ClientId ) matches the client to whom the Client Credentials grant access token was issued, the ASPSP returns details of the requested client
  • If the ClientId is unknown, the ASPSP responds with an Unauthorized status code and immediately revokes the access token

[Back To Top]


Updating an application

The API allows the TPP to request the ASPSP to modify one or more attributes related to an existing client. The request relies on Mutual TLS authentication and application access token (Client Credentials grant type) for TPP authentication.

The request has one path parameter named ClientId . It specifies the ClientId of the application that the TPP wants to modify. The TPP submits a JWS payload that describes the characteristics of the client to be modified. This must include all the claims, including the ones that will not be modified.

  • If the client is successfully modified, the ASPSP responds with a JSON payload that describes the client that was created.
  • If the ClientId is unknown, the ASPSP responds with an Unauthorized status code and immediately revokes the access token.

  • If client modification is unsuccessful, the ASPSP responds with an error payload.

[Back To Top]


Deleting an application

The API allows the TPP to request the ASPSP to delete an existing client. The request relies on Mutual TLS authentication and application access token (Client Credentials grant type) for TPP authentication.

The request has one path parameter named ClientId . It specifies the ClientId of the application that the TPP wants to delete.

  • If the request is successful and the ClientId  matches the client to whom the Client Credentials grant access token was issued, the ASPSP must delete the client and invalidate long-lived access tokens that were issued to the client
  • If the ClientId is unknown, the ASPSP responds with an Unauthorized status code and immediately revokes the access token

If the deletion is successful you will get a 204 No Content response.

[Back To Top]