# SAML Authentication (with Authentik): SAML Login-URL and auto-assign permission

**URL:** <https://community.zammad.org/t/saml-authentication-with-authentik-saml-login-url-and-auto-assign-permission/10876>\
**Category:** Technical assistance\
**Created:** [February 3, 2023, 11:34am UTC](https://community.zammad.org/t/saml-authentication-with-authentik-saml-login-url-and-auto-assign-permission/10876 "2023-02-03T11:34:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![christophdb1](https://community.zammad.org/user_avatar/community.zammad.org/christophdb1/32/4276_2.png) [@christophdb1](https://community.zammad.org/u/christophdb1)\
**Post date:** [February 8, 2023, 1:01pm UTC](https://community.zammad.org/t/saml-authentication-with-authentik-saml-login-url-and-auto-assign-permission/10876/3 "2023-02-08T13:01:04Z")

</div>

Of course. Here is my configuration:

- [auth.seatable.io](http://auth.seatable.io) is my IdP
- [support.seatable.io](http://support.seatable.io) is my Zammad-System

# Configuration in Authentik

In Authentik I created a SAML Provider:

- ACS URL: [https://support.seatable.io/auth/saml/callback](https://support.seatable.io/auth/saml/callback)
- Issuer: [https://support.seatable.io/auth/saml/metadata](https://support.seatable.io/auth/saml/metadata)
- Service Provider Binding: Post
- Audience: [https://support.seatable.io/auth/saml/metadata](https://support.seatable.io/auth/saml/metadata)
- (Advanced Settings) Signing Certificate: select one
- (Advanced Settings) Verification Certificate: empty
- (Advanced Settings) Property mappings: I added two custom mappings: “email” and “name”
- (Advanced Settings) NameID Property Mapping: Zammad  
– email and name are defined in “Customisation → Property Mappings → SAML Property Mapping”

 ![image](https://community.zammad.org/uploads/default/original/2X/2/2311f686a5ad443c548ccc712d2f3054714259ea.png)

* * *

 ![image](https://community.zammad.org/uploads/default/original/2X/6/65d0098e444c8c743dee0b1bf8d2b6f2f242cc0b.png)

* * *

 ![image](https://community.zammad.org/uploads/default/original/2X/5/51fe08d228e3edbd4daf076ab2c672568a4c0ba0.png)

These custom mappings are necessary because Zammad **expects** the values name and email as described here: [SAML — Zammad Admin Documentation documentation](https://admin-docs.zammad.org/en/latest/settings/security/third-party/saml.html).

# Configuration in Zammad is simple:

- IDP SSO Ziel-URL: [https://auth.seatable.io/application/saml/ticketsystem-seatable/sso/binding/init/](https://auth.seatable.io/application/saml/ticketsystem-seatable/sso/binding/init/)
- IDP-Zertifikat: ----BEGIN CERTIFICATE---- …  
Finterprint: empty  
NAME IDENTIFIER FORMAT: empty  
Callback URL: [https://support.seatable.io/auth/saml/callback](https://support.seatable.io/auth/saml/callback)

# URL to start SSO from authentik

as target url inside “authentik-application” I don’t use [https://support.seatable.io](https://support.seatable.io). Otherwise the users have to click again on the button “Login with SAML”. To jump right into SSO, just use as target URL [authentik](https://auth.seatable.io/application/saml/ticketsystem-seatable/sso/binding/init/) url.

I hope this helps.  
Christoph

---

_[View the full topic](https://community.zammad.org/t/saml-authentication-with-authentik-saml-login-url-and-auto-assign-permission/10876)._
