> 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/adfs.md).

# ADFS

Dastra integreert met ADFS. Deze pagina legt de bijzonderheden uit van het configureren van SSO met AD FS.

## Over ADFS

Active Directory Federation Services (meestal afgekort tot ADFS) is een oplossing voor eenmalig inloggen (SSO) van Microsoft. Deze diensten, een onderdeel van de Windows Server-besturingssystemen, laten gebruikers authenticeren via Active Directory (AD) wanneer ze toegang willen tot een toepassing die geen Integrated Windows Authentication (IWA) kan gebruiken.

## ADFS configureren in Dastra

### Stap 1: een SAML-login maken in Dastra

* Ga naar de [SSO-configuratiepagina van Dastra](https://app.dastra.eu/general-settings/sso) (**Organisatie-instellingen** > **Eenmalig inloggen**).
* Klik op **Voeg een SSO-login toe**.
* Selecteer bij **SSO-protocol** de optie **SAML2** en daarna **Handmatige configuratie**.
* Voer in het veld **Entiteits-ID van de identiteitsprovider (uitgever)** de volgende URL in: `http://<adfs server url>/adfs/services/trust`
* Voer in het veld **Identity Provider SSO url** het volgende in: `https://<adfs server url>/adfs/ls`

### Stap 2: het ADFS-certificaat ophalen

* Ga naar de map **Certificates** van de ADFS-server.
* Haal het .CER-certificaat van uw ADFS-server op via het certificaat **Token-Signing**.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-f8cdae1165e842b5db92ebfd2bf1722d55242782%2Fadfs1.png?alt=media" alt="De map Certificates van de ADFS-server, met het certificaat Token-Signing"><figcaption></figcaption></figure>

* Klik op **View Certificates**.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-1fa4de27491ee71b1dc4e57f5053f68080a36652%2Fadfs2.png?alt=media" alt="De wizard voor het exporteren van het certificaat"><figcaption></figcaption></figure>

Kopieer de code van het X509-certificaat door het CER-bestand te openen met een teksteditor. Plak die in het certificaatveld, tussen `-----BEGIN CERTIFICATE-----` en `-----END CERTIFICATE-----`. Uw loginconfiguratie moet er als volgt uitzien:

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-94fc328737686782725b9c0c9f64c61082bf4789%2Fsettings-sso-adfs-dastra-idp-configuration.png?alt=media" alt="Het SAML-loginformulier in Dastra, ingevuld met de ADFS-waarden"><figcaption></figcaption></figure>

### Stap 3: de volgende waarden bewaren

* De SP-omleidings-URI (formaat: `https://account.dastra.eu/xxxxx-xxxx-xxxx-xxxx/Acs`): de callback-URL van de toepassing, waarnaar het SAML-token wordt gestuurd. De ondersteunde algoritmen zijn SHA-256 en hoger. Kopieer de URI bovenaan het SAML-formulier.
* De **Entiteits-ID van de identiteitsprovider (uitgever)**, die bovenaan hetzelfde formulier wordt weergegeven.

Deze twee waarden gebruikt u om de ADFS-server in te stellen zodat die SSO-verzoeken van Dastra accepteert.

## De Dastra-client configureren in ADFS

Zo configureert u Dastra-SSO met ADFS SSO SAML2P.

Stap 1: open **AD FS Management** op uw ADFS-server.

Stap 2: klik met de rechtermuisknop op **Relying Party Trusts** en selecteer **Add Relying Party Trust**. De wizard **Add Relying Party Trust** start.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-f5df503acb8d61cac9fb268a32e35242e1f0b8b0%2Fadfs4.png?alt=media" alt="Het menu Relying Party Trusts in AD FS Management"><figcaption></figcaption></figure>

Stap 3: kies op het scherm **Select Data Source** de optie **Enter data about the relying party manually**.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-30d9222f6de6daf77397232f094c7671e4b12827%2Fadfs5.png?alt=media" alt="Het scherm Select Data Source van de wizard"><figcaption></figcaption></figure>

Stap 4: voer een **Display name** in, bijvoorbeeld "Dastra", en klik op **Next**.

Stap 5: kies **AD FS profile** (SAML 2.0) en klik op **Next**.

Stap 6: klik op het scherm **Configure Certificate** op **Next** zonder een certificaat te selecteren.

Stap 7: selecteer **Enable support for the SAML 2.0 WebSSO protocol**.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-cf66e5bf15ed6a6492126555cf79ae647611caab%2Fadfs6.png?alt=media" alt="Het scherm Configure URL van de wizard"><figcaption></figcaption></figure>

Voer in het veld **Relying party SAML 2.0 SSO service URL** de SP-omleidings-URI van Dastra in. Die ziet er zo uit: `https://account.dastra.eu/xxxx-xxxx-xxxx-xxxx/Acs`

Stap 8: voeg in het gedeelte **Relying party trust identifier** twee waarden toe: `account.dastra.eu` en `https://account.dastra.eu`.

Stap 9: klik op **Next** tot het einde van de wizard.

Stap 10: schakel het selectievakje **Open the Edit Claim Rules dialog** in voordat u op **Close** klikt. Het venster **Edit Claim Rules** verschijnt.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-fe02e8ff8c7d5c45705de19af1b36ec026a6cb8f%2Fadfs7.png?alt=media" alt="Het laatste scherm van de wizard met de optie Edit Claim Rules"><figcaption></figcaption></figure>

Stap 11: klik op **Add Rule** en kies het claimregelsjabloon **Send LDAP Attributes as Claims**.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-fd55cf37a346563bb85822ac43d64880ea0f40e6%2Fadfs8-1.png?alt=media" alt="De lijst met claimregelsjablonen"><figcaption></figcaption></figure>

Stap 12: koppel de claims als volgt. De namen van de claims kunnen verschillen naargelang de configuratie van uw server. Dastra heeft drie attributen nodig: het e-mailadres (verplicht), de achternaam en de voornaam van de gebruiker.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-1880a213ed495960b173783a53ee9a7b64b3e410%2Fadfs8.png?alt=media" alt="De koppeling van LDAP-attributen aan uitgaande claims"><figcaption></figcaption></figure>

Stap 13: klik op **Finish** en daarna opnieuw op **Add Rule**. Kies deze keer het sjabloon **Transform an Incoming Claim** en klik op **Next**.

Stap 14: configureer de volgende regel: **Email Address** => **Name ID** => **Email**.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-b3e1271b34e7a4408cf544cf2673471eeae61759%2Fadfs10.png?alt=media" alt="De regel Transform an Incoming Claim, geconfigureerd voor de Name ID"><figcaption></figcaption></figure>

Klik daarna op **Apply**.

Stap 15: klik in het venster **AD FS Management** met de rechtermuisknop op de relying party van Dastra en kies **Properties**. Kies op het tabblad **Advanced** SHA-256 als beveiligd hashalgoritme.

Stap 16: de configuratie is voltooid.

## Afronden en testen

Wanneer alles aan beide kanten is geconfigureerd, gaat u terug naar Dastra en klikt u op **Testen**, rechts van de verbinding in de lijst met SSO-logins.


---

# 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/adfs.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.
