> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/nl/features/settings/sso/saml.md).

# SAML 2

Details van de configuratie van SAML 2

SSO instellen met SAML 2 gebeurt in drie stappen:

* de authenticatieprovider configureren (Identity Provider, IdP): Active Directory, Google Workspace enzovoort;
* de serviceprovider configureren (Service Provider, SP): Dastra;
* de authenticatie testen.

Voor ADFS-servers verwijst u naar de speciale pagina:

{% content-ref url="/pages/pmSX0KXpBPlf886VsKUb" %}
[ADFS](https://doc.dastra.eu/nl/features/settings/sso/adfs.md)
{% endcontent-ref %}

## 1. De authenticatieprovider configureren

Stel een SAML-configuratie in bij uw authenticatieprovider.

* Voor AD FS: zie de pagina [ADFS](https://doc.dastra.eu/nl/features/settings/sso/adfs.md).
* Voor Microsoft Entra ID (voorheen Azure AD): zie de pagina [Active Directory (Microsoft Entra ID)](https://doc.dastra.eu/nl/features/settings/sso/entra-id.md) en de [documentatie van Microsoft](https://learn.microsoft.com/nl-nl/entra/identity/enterprise-apps/add-application-portal-setup-sso).
* Voor Google: <https://support.google.com/a/answer/6087519?hl=nl>

Om de lokale accounts (die in Dastra worden gehost) te koppelen, moet u een eigenschap met het e-mailadres van de gebruiker meegeven (standaard zoekt Dastra naar de eigenschap met de naam <http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress>). U kunt deze naam wijzigen in het veld **De naam van de claim met het e-mailadres**.

Dit zijn de gegevens die u bij de serviceprovider moet invullen:

* **Entiteits-ID van de identiteitsprovider (uitgever)** (Entity id, issuer);
* **Identity Provider SSO url** (Single sign on url);
* het certificaat in RAW-formaat (Base64-gecodeerd), in het veld **Identity Provider Certificaat (RAW)**.

Om uw authenticatieprovider te configureren hebt u de volgende gegevens nodig, die bovenaan het SAML-formulier in Dastra staan:

* Issuer: standaard `https://www.dastra.eu`;
* SP-omleidings-URI (ACS): `https://account.dastra.eu/{connection identifier}/Acs`. Deze URL is specifiek voor elke verbinding: kopieer haar bovenaan het SAML-formulier wanneer u de SSO-login in Dastra toevoegt (stap 2) en sla die login daarna op;
* **SP start URL (Aanmeld-URL)**, als uw provider een aanmeld-URL voor de toepassing vraagt;
* **SAML Logout-URL (optioneel)**, als uw provider het afmelden afhandelt.

## 2. De serviceprovider configureren

Open in Dastra de [SSO-beheerpagina](https://app.dastra.eu/general-settings/sso) (**Instelling van de organisatie** > **Eenmalig inloggen**, alleen beschikbaar voor eigenaren van de organisatie) en klik op **Voeg een SSO-login toe**. Kies het protocol **SAML2**.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-9f0b0d5a9f4dca0e4d25881de28162a2914a750c%2Fsettings-sso-liste-logins.png?alt=media" alt="De pagina Eenmalig inloggen met de lijst met SSO-logins en de knop Voeg een SSO-login toe"><figcaption></figcaption></figure>

Kies daarna hoe u de configuratie van uw identiteitsprovider aanlevert:

* **Upload uw SAML-configuratiemanifest (.xml)**: upload het metadatabestand (XML-manifest) dat uw provider levert. Dastra vult de velden van het formulier in op basis van dit bestand. Klik op de terugknop om van methode te wisselen.
* **Handmatige configuratie**: vul de velden zelf in.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-9f2f0f67d8bffcf8db8e4c5bc45f87659ecbdf81%2Fsettings-sso-saml-upload-manifest.png?alt=media" alt="De keuze tussen het uploaden van het SAML-manifest en handmatige configuratie"><figcaption></figcaption></figure>

Vul bij handmatige configuratie de velden van het formulier in met de gegevens van uw authenticatieprovider:

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-bd4d8b0fca8698aac2fc208e9ce2449562b86547%2Fsettings-sso-saml-config-form.png?alt=media" alt="Het formulier voor handmatige configuratie van een SAML-SSO-login in Dastra"><figcaption></figcaption></figure>

{% hint style="danger" %}
U kunt alle gebruikers van de organisatie dwingen een bepaalde SSO te gebruiken (optie **Forceer voor alle gebruikers**). Wees voorzichtig: als de SSO uitvalt, hebt u als beheerder geen toegang meer tot uw account. Houd een lokaal reserveaccount aan, of stel gebruikers vrij met het veld **Specifieke gebruikers die zijn vrijgesteld van SSO (bijv. beveiligingsbeheerders)** (zie [Single Sign On (SSO)](https://doc.dastra.eu/nl/features/settings/sso.md)). SSO per gebruiker beheren verdient de voorkeur.
{% endhint %}

{% hint style="warning" %}
Bijzonder geval van externe gebruikers: alleen accounts die intern zijn voor een abonnement vallen onder SSO. Accounts van externe gebruikers (met een extra abonnement) vallen er niet onder.
{% endhint %}

## 3. De SSO testen

Test de authenticatie wanneer de configuratie klaar is door rechts van de verbinding in de lijst op **Testen** te klikken. Loopt u tegen een probleem aan, open dan een ticket via de [supportpagina](https://app.dastra.eu/general-settings/support).

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-ed9c8607d915104e771f74f0816f41a710ef89cd%2Fsettings-sso-saml-provider-card.png?alt=media" alt="Een SAML-SSO-verbinding in de lijst, met de status en de knop Testen"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.dastra.eu/nl/features/settings/sso/saml.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
