-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3490 from open-formulieren/586-suwinet-prefill
586 suwinet prefill
- Loading branch information
Showing
680 changed files
with
29,489 additions
and
32 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ Prefill plugins | |
:maxdepth: 1 | ||
|
||
bag | ||
haal_centraal | ||
kvk | ||
stuf_bg | ||
haal_centraal | ||
suwinet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
.. _configuration_prefill_suwinet: | ||
|
||
======= | ||
Suwinet | ||
======= | ||
|
||
`Suwinet`_ is a collection of SOAP services connecting municipalities and several social | ||
services. You can configure Open Forms to use these services to prefill data of the | ||
authenticated person filling out the form. | ||
|
||
.. note:: | ||
|
||
This service contains sensitive data and requires a connection to an | ||
external system, offered by `BKWI`_. | ||
|
||
.. _`Suwinet`: https://www.bkwi.nl/producten/suwinet-services/ | ||
.. _`BKWI`: https://www.bkwi.nl | ||
|
||
Configuration | ||
============= | ||
|
||
The Open Forms Suwinet plugin supports Suwinet Access via a Gateway server. To configure | ||
it, you need: | ||
|
||
A client certificate key pair | ||
the plugin uses this for the mTLS with the Gateway *and* to sign all the requests | ||
to the services that require WSSE. Make sure the services you plan to use have this | ||
public certificate —and possibly the chain— for validation. | ||
A server certificate | ||
for the mTLS connection to the Gateway | ||
URLs of the binding addresses | ||
for the services you plan to use in your forms | ||
|
||
|
||
1. In Open Forms, navigate to: **Miscellaneous** > **Suwinet configuration** | ||
2. Add a SOAP service | ||
3. In the new SOAP service popup fill in these details: | ||
|
||
- **Label**: *Fill in a human readable label*, for example: ``My Suwinet`` | ||
- **URL**: *Leave **empty*** | ||
- **SOAP version**: SOAP 1.2 | ||
- **Client certificate**: Add your certificate+key-pair and give it a recognisable label. | ||
- **Server certificate**: Add the gateway certificate and give it a recognisable label. | ||
|
||
4. For each service you plan to use in forms, fill in the URL on your Gateway where Open | ||
Forms can reach it. | ||
|
||
.. image:: _assets/suwinet_config.png | ||
|
||
|
||
Technical | ||
========= | ||
|
||
Open Forms uses these versions of the WSDL descriptions of the SOAP services: | ||
|
||
==================================================== ========= | ||
Service Version | ||
==================================================== ========= | ||
BRPDossierPersoonGSD v0200-b02 | ||
Bijstandsregelingen v0500-b04 | ||
DUODossierPersoonGSD v0300-b01 | ||
DUODossierStudiefinancieringGSD v0200-b01 | ||
GSDDossierReintegratie v0200-b04 | ||
IBVerwijsindex v0300-b01 | ||
KadasterDossierGSD v0300-b02 | ||
RDWDossierDigitaleDiensten v0200-b01 | ||
RDWDossierGSD v0200-b02 | ||
SVBDossierPersoonGSD v0200-b01 | ||
UWVDossierAanvraagUitkeringStatusGSD v0200-b01 | ||
UWVDossierInkomstenGSDDigitaleDiensten v0200-b01 | ||
UWVDossierInkomstenGSD v0200-b02 | ||
UWVDossierQuotumArbeidsbeperktenGSD v0300-b01 | ||
UWVDossierWerknemersverzekeringenGSDDigitaleDiensten v0200-b01 | ||
UWVDossierWerknemersverzekeringenGSD v0200-b01F | ||
UWVWbDossierPersoonGSD v0200-b01 | ||
==================================================== ========= |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
.. _example_suwinet: | ||
|
||
================================= | ||
Formulier met waarden uit Suwinet | ||
================================= | ||
|
||
In dit voorbeeld verwerken we informatie die via :ref:`Suwinet | ||
<configuration_prefill_suwinet>` uit het Kadaster komt tot keuzeopties voor keuzevakjes. | ||
We maken daarvoor de `kadastrale aanduiding`_, die de een perceel uniek identificeert. | ||
|
||
De Suwinet plugin gebruikt het BSN van de invuller om informatie op te halen, daarom is | ||
het vereist om een :ref:`Authenticatie plugin <configuration_authentication_index>` te | ||
gebruiken die een BSN aanbiedt. | ||
|
||
We gaan ervan uit dat u een :ref:`formulier met geavanceerde logica | ||
<example_advanced_logic>` kunt maken. | ||
|
||
.. _kadastrale aanduiding: https://nl.wikipedia.org/wiki/Kadastrale_aanduiding | ||
|
||
Formulier maken | ||
=============== | ||
|
||
#. Maak een formulier aan met de volgende gegevens: | ||
|
||
* **Naam**: Subsidieaanvraag duurzame energie en energiebesparing | ||
* **Authenticatiemethode**: Een methode die BSN aanbiedt. Bijv. *Demo BSN(test)* | ||
|
||
#. Klik op het tabblad **Stappen en velden**. | ||
#. Klik aan de linkerkant op **Stap toevoegen** en selecteer **Maak een nieuwe | ||
formulierdefinitie**. | ||
#. Onder de sectie **(Herbruikbare) stapgegevens** vul het volgende in: | ||
|
||
* **Naam**: Onderwerp aanvraag | ||
* Vink **Vereist authenticatie** aan | ||
|
||
#. Sleep een **Vrije tekst** component op het witte vlak en vul de volgende tekst in: | ||
|
||
.. code-block:: django | ||
U heeft deze percelen: | ||
{% for perceel in onroerendeZaken.ClientSuwi.Eigendom.OnroerendeZaak %} | ||
{{perceel.KadastraleAanduiding.KadastraleGemeentenaam}} {{perceel.KadastraleAanduiding.KadastraleSectie}} met perceelnummer: {{perceel.KadastraleAanduiding.KadastraalPerceelnr}} | ||
{% endfor %} | ||
.. image:: _assets/suwinet_free_text.png | ||
|
||
|
||
#. Sleep een **Selectievakjes** component onder het vrije-tekst-component, vul de volgende | ||
gegevens in en druk daarna op **Opslaan**: | ||
|
||
* **Label**: Welke percelen gaat u verduurzamen? | ||
* Scroll naar beneden en selecteer bij **Keuzeopties** ``variabele`` | ||
* Vul bij **Opties-expressie** het volgende in: | ||
|
||
.. code-block:: json | ||
{"map": [ | ||
{"var": "onroerendeZaken.ClientSuwi.Eigendom.OnroerendeZaak"}, | ||
{"cat": [ | ||
{"var": "KadastraleAanduiding.KadastraleGemeentenaam"}, | ||
" ", | ||
{"var": "KadastraleAanduiding.KadastraleSectie"}, | ||
" ", | ||
{"var": "KadastraleAanduiding.KadastraalPerceelnr"} | ||
]} | ||
]} | ||
.. image:: _assets/suwinet_field.png | ||
|
||
#. Klik op de **Variabelen** tab in het formuliermenu en vervolgens op de **Gebruikersvariabelen** tab | ||
|
||
#. Klik op **Variabele toevoegen** | ||
#. Voer bij **Naam** ``Onroerende Zaken`` | ||
#. Kies bij **Prefill-plugin** ``Suwinet`` | ||
#. Kies bij **Prefill-attribuut** ``KadasterDossierGSD > PersoonsInfo`` | ||
#. Kies bij **Datatype** ``Sleutel-waardepaar (object)`` | ||
#. Vink **Gevoelige gegevens** aan. | ||
|
||
.. image:: _assets/suwinet_vars.png | ||
|
||
De testdata van het Kadaster bevat voor BSN ``111111110`` zaken in Zwolle. Wanneer we | ||
met dat BSN inloggen op het formulier zal het er zo uit zien: | ||
|
||
.. image:: _assets/suwinet_form.png | ||
|
||
.. note:: | ||
TIP: Je kunt een **Vrije tekst** component uit de **Opmaak** categorie gebruiken om de | ||
structuur van het antwoord object in te zien:: | ||
|
||
Data: | ||
{{onroerendeZaken}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.