Code Monkey home page Code Monkey logo

blueprint-bolagsverket-get-ssbtro's Introduction

Onify Blueprints

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Test suite

Onify Blueprint: Get SSBTRO data Bolagsverket

Bolagsverket's SSBT (Sammansatt bastjänst) service was created with the aim to streamline companies reporting to the government and reducing their administrative burden. SSBT delivers consolidated company information based on source data from Bolagsverket, Skatteverket, and SCB.

Note: SSBT is an information service only for public actors based in Sweden, that is to say, authorities, municipalities, and regions.

This blueprint primarily demonstrates how to retrieve which roles a certain person has in a specified company via SSBTRO.

Note: This has only been tested against SSBTRO testversion using Bolagsverket fixed test scenarios, see connection guide (swedish) and checklist (swedish) for more information.

Onify Blueprint: Get SSBTRO data Bolagsverket

Requirements

These are the technical requirements.

Setup

Bolagsverket

As mentioned in the requirements, you need a certificate from TeliaSonera. Here is how you prepare the certificate for use against test service (SSBTRO TEST).

Download and prepare certificate for Onify

Go to https://repository.trust.teliasonera.com/teliasonerarootcav1.cer and download the certificate.

Now when you have downloaded (replace <path_to_teliasonerarootcav1.cer> below) the certificate you need to convert it to base64 format so it can be used as a setting in Onify. Here is how you do it with powershell:

$cerContent = Get-Content -Path "path_to_teliasonerarootcav1.cer" -AsByteStream
$base64Content = [System.Convert]::ToBase64String($cerContent)

$pemContent = "-----BEGIN CERTIFICATE-----`n"
$pemContent += ($base64Content -split '(.{64})' | Where-Object { $_ }) -join "`n"
$pemContent += "`n-----END CERTIFICATE-----"

$certObject = [PSCustomObject]@{
    certificate = $pemContent
}

$jsonContent = $certObject | ConvertTo-Json
$jsonContent

Note: Keep the json for for later...

Onify

Add the following settings in Onify:

Key Value Type Tag Role
bolagsverket_ssbt_certificate_authority {certificate": "-----BEGIN CERTIFICATE-----\nMIIFODCCAyC.....} (the json output from the powershell snippet above) object ssbt, bolagsverket admin
bolagsverket_ssbtro_url https://ssbtgu-accept2.bolagsverket.se/ssbtro-dft-web/SsbtServicePorts/Test/SsbtRoTestService?wsdl - URL to SSBTRO service string ssbt, bolagsverket admin

Note: Create settings via admin interface and add a leading _ in key. This is required for flow to work.

Test

  1. Open the BPMN diagram in Camunda Modeler.
  2. Deploy the BPMN diagram (click Deploy current diagram and follow the steps).
  3. Run it (click Start current diagram).

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.

blueprint-bolagsverket-get-ssbtro's People

Contributors

aronsson84 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.