> 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/de/features/settings/single-sign-on-sso/saml-2.md).

# SAML 2

Details zur Konfiguration von SAML 2

Die Konfiguration des SSO mit SAML 2 erfolgt in drei Schritten

* Konfiguration des Authentifizierungsanbieters (**Identity Provider - IdP**): Active Directory, Google Workspace...
* Konfiguration des Dienstanbieters (**Service Provider - SP**): Dastra
* Tests der Authentifizierung

Im spezifischen Fall **von ADFS-Servern** konsultieren Sie unsere spezielle Dokumentation:

{% content-ref url="/pages/qktRgQq3McV7W87s1uI7" %}
[ADFS](/de/features/settings/single-sign-on-sso/adfs.md)
{% endcontent-ref %}

## 1. Konfiguration des Authentifizierungsanbieters

Sie müssen eine SAML-Konfiguration in Ihrem Authentifizierungsanbieter einrichten.

Für AD FS: <https://docs.microsoft.com/fr-fr/powerapps/maker/portals/configure/configure-saml2-settings>

Für Azure AD: <https://docs.microsoft.com/fr-fr/powerapps/maker/portals/configure/configure-saml2-settings-azure-ad>

Für Google: <https://support.google.com/a/answer/6087519?hl=fr>

Um den Abgleich zwischen den lokalen Konten (die in Dastra gehostet werden) herzustellen, müssen Sie eine Eigenschaft angeben, die die E-Mail des Nutzers enthält (standardmäßig sucht Dastra die Eigenschaft mit dem Namen <http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress>).

Hier sind die Informationen, die Sie zur Konfiguration des Service Providers benötigen:

* **Identity Provider's Entity id** (issuer)
* **Single sign on url**
* **Das Zertifikat im RAW-Format** (Base64-codiert)

Zur Konfiguration Ihres Authentifizierungsanbieters benötigen Sie die folgenden Informationen:

* **Issuer**: standardmäßig „<https://www.dastra.eu>"
* **SP Redirect URI**: standardmäßig [https://account.dastra.eu/Saml2/Acs](https://localhost:44375/Saml2/Acs)

## 2. Konfiguration des Dienstanbieters

Gehen Sie in dastra.eu auf [die SSO-Administrationsseite](https://app.dastra.eu/general-settings/sso) und klicken Sie auf „SSO-Login hinzufügen"

![](https://1094947073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgG4SiA7dB1sjSI91cItk%2Fuploads%2Fgit-blob-28da91f4673d6b431af1dd98cfeb3b33574aafca%2Fimage-116.png?alt=media)

Füllen Sie die Formularfelder mithilfe der Konfigurationsinformationen der Entität aus:

![](https://1094947073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgG4SiA7dB1sjSI91cItk%2Fuploads%2Fgit-blob-9fd766d23ede961de11b4d694e56aff19cf7bb61%2Fimage-117.png?alt=media)

{% hint style="danger" %}
Es ist möglich, alle Nutzer des Abonnementkontos zur Verwendung eines bestimmten SSO zu zwingen (durch Aktivieren des Kontrollkästchens „Nutzer zur Verwendung dieses SSO zwingen"). Vor der Aktivierung dieser Option ist Vorsicht geboten. Denn wenn das SSO nicht funktioniert, können Sie nicht mehr als Administrator auf Ihr Konto zugreifen. Es ist vorzuziehen, das SSO pro Nutzer zu verwalten.
{% endhint %}

{% hint style="warning" %}
**Sonderfälle externer Nutzer**\
Nur interne Konten eines Abonnements unterliegen dem SSO. Konten externer Nutzer (die ein anderes zusätzliches Abonnement haben) unterliegen nicht dem SSO.
{% endhint %}

## 3. SSO testen

Sobald die Konfiguration abgeschlossen ist, können Sie die Authentifizierung testen, indem Sie unten rechts auf die Schaltfläche „Testen" klicken. Wenn Sie bei der SSO-Konfiguration auf ein Problem stoßen, wenden Sie sich bitte an den Support, indem Sie die Seite zur [Verwaltung von Support-Tickets](https://app.dastra.eu/general-settings/support) aufrufen.

![](https://1094947073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgG4SiA7dB1sjSI91cItk%2Fuploads%2Fgit-blob-97d5c01bc195dfc8e8c8d3e73230f0d721c00262%2Fimage-120.png?alt=media)


---

# 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/de/features/settings/single-sign-on-sso/saml-2.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.
