Skip to content

Region Connector for Belgium (Fluvius)

This README will guide you through the process of configuring a region connector for flemish Belgium.

Prerequisites

  • Register as a partner with Fluvius, a belgian company ID is required for this.
  • During the onboarding process, a certificate has to be provided, which fluvius uses to allowlist your application.
  • Furthermore, credentials are provided to access the API.

Configuration of the Region Connector

The region connector needs a set of configuration values to be able to function correctly, how you provide these values depends on the way you deploy the region connector.

Configuration valuesDescription
region-connector.be.fluvius.oauth.token-urlThe URL to obtain an API token, again provided by fluvius during the onboarding.
region-connector.be.fluvius.oauth.client-idClient ID to obtain an API token, provided by Fluvius.
region-connector.be.fluvius.oauth.client-secretClient secret to obtain an API token, provided by Fluvius.
region-connector.be.fluvius.oauth.tenant-idThe tenant ID identifies the microsoftonline OAuth server.
region-connector.be.fluvius.oauth.scopeScope of the requested API token, provided by Fluvius.
region-connector.be.fluvius.base-urlThe base-url of the API, the urls are provided during the onboarding process by Fluvius.
region-connector.be.fluvius.subscription-keyThe subscription key to access the API, provided by Fluvius.
region-connector.be.fluvius.contract-numberContract number to create permission requests via Fluvius' API, provided by Fluvius.
region-connector.be.fluvius.mock-mandatesIs either true or false. Set to true if the sandbox environment provided by Fluvius is used. Can be used to test the region connector against the sandbox.
region-connector.be.fluvius.redirect-uriThe redirect uri that's used for success and error redirects by fluvius.
region-connector.be.fluvius.retryConfigures when a failed to send permission request should be retried. Uses Spring Cron syntax. Default is 0 0 * * * *.
region-connector.be.fluvius.check-acceptanceConfigures when the region connector should check for acceptance of permission requests. Uses Spring Cron syntax. Default is 0 0 * * * *.
spring.ssl.bundle.pem.fluvius.keystore.certificateSpecify the public part of the certificate that was allowlisted by Fluvius.
spring.ssl.bundle.pem.fluvius.keystore.private-keySpecify the private part of the certificate that was allowlisted by Fluvius.

The region connector can be configured using Spring properties or environment variables. When using environment variables, the configuration values need to be converted in the following way:

  • Replace all non-alphanumeric characters with an underscore (_)
  • Optionally convert all letters to upper case
properties
region-connector.be.fluvius.base-url=REPLACE_ME
region-connector.be.fluvius.oauth.token-url=https://login.microsoftonline.com/${region-connector.be.fluvius.oauth.tenant-id}/oauth2/V2.0/token
region-connector.be.fluvius.oauth.client-id=REPLACE_ME
region-connector.be.fluvius.oauth.tenant-id=REPLACE_ME
region-connector.be.fluvius.oauth.client-secret=REPLACE_ME
region-connector.be.fluvius.oauth.scope=REPLACE_ME
region-connector.be.fluvius.subscription-key=REPLACE_ME
region-connector.be.fluvius.contract-number=REPLACE_ME
region-connector.be.fluvius.mock-mandates=false
region-connector.be.fluvius.redirect-uri=${eddie.public.url}
region-connector.be.fluvius.retry=0 0 * * * *
region-connector.be.fluvius.check-acceptance=0 0 * * * *
spring.ssl.bundle.pem.fluvius.keystore.certificate=/path/to/certificate.cer
spring.ssl.bundle.pem.fluvius.keystore.private-key=/path/to/certificate.key
yaml
region-connector:
  be:
    fluvius:
      base-url: REPLACE_ME
      oauth:
        token-url: https://login.microsoftonline.com/${region-connector.be.fluvius.oauth.tenant-id}/oauth2/V2.0/token
        client-id: REPLACE_ME
        tenant-id: REPLACE_ME
        client-secret: REPLACE_ME
        scope: REPLACE_ME
      subscription-key: REPLACE_ME
      contract-number: REPLACE_ME
      mock-mandates: false
      redirect-uri: ${eddie.public.url}
      retry: 0 0 * * * *
      check-acceptance: 0 0 * * * *
spring:
  ssl:
    bundle:
      pem:
        fluvius:
          keystore:
            certificate: /path/to/certificate.cer
            private-key: /path/to/certificate.key
dotenv
REGION_CONNECTOR_BE_FLUVIUS_BASE_URL=REPLACE_ME
REGION_CONNECTOR_BE_FLUVIUS_OAUTH_TOKEN_URL=https://login.microsoftonline.com/${region-connector.be.fluvius.oauth.tenant-id}/oauth2/V2.0/token
REGION_CONNECTOR_BE_FLUVIUS_OAUTH_CLIENT_ID=REPLACE_ME
REGION_CONNECTOR_BE_FLUVIUS_OAUTH_TENANT_ID=REPLACE_ME
REGION_CONNECTOR_BE_FLUVIUS_OAUTH_CLIENT_SECRET=REPLACE_ME
REGION_CONNECTOR_BE_FLUVIUS_OAUTH_SCOPE=REPLACE_ME
REGION_CONNECTOR_BE_FLUVIUS_SUBSCRIPTION_KEY=REPLACE_ME
REGION_CONNECTOR_BE_FLUVIUS_CONTRACT_NUMBER=REPLACE_ME
REGION_CONNECTOR_BE_FLUVIUS_MOCK_MANDATES=false
REGION_CONNECTOR_BE_FLUVIUS_REDIRECT_URI=${eddie.public.url}
REGION_CONNECTOR_BE_FLUVIUS_RETRY=0 0 * * * *
REGION_CONNECTOR_BE_FLUVIUS_CHECK_ACCEPTANCE=0 0 * * * *
SPRING_SSL_BUNDLE_PEM_FLUVIUS_KEYSTORE_CERTIFICATE=/path/to/certificate.cer
SPRING_SSL_BUNDLE_PEM_FLUVIUS_KEYSTORE_PRIVATE_KEY=/path/to/certificate.key

Running the Region Connector via EDDIE

If you are using EDDIE, the region connector should appear in the list of available region connectors if it has been configured correctly.