Skip to content

Commit 3f617c2

Browse files
authored
website/integrations: add property mappings to GLPI (#21374)
Add property mappings
1 parent 0c9c1ec commit 3f617c2

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

  • website/integrations/documentation/glpi

website/integrations/documentation/glpi/index.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,33 @@ By default, GLPI only offers OAuth authentication to subscribers. This guide des
5151

5252
## authentik configuration
5353

54-
To support the integration of GLPI with authentik, you need to create an application/provider pair in authentik.
54+
To support the integration of GLPI with authentik, you need to create property mappings, and an application/provider pair in authentik.
55+
56+
### Create property mappings in authentik
57+
58+
1. Log in to authentik as an administrator and open the authentik Admin interface.
59+
2. Navigate to **Customization** > **Property Mappings**, click **Create**, select **SAML Provider Property Mappings**, and click **Next**.
60+
3. Configure the first mapping for the user's _given name_ (first name):
61+
- **Name**: `givenname`
62+
- **SAML Attribute Name**: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname`
63+
- **Friendly Name**: Leave blank
64+
- **Expression**:
65+
66+
```python
67+
return request.user.name.split(" ", 1)[0]
68+
```
69+
70+
4. Click **Finish** to save. Then, repeat the process to create a mapping for the user's _surname_:
71+
- **Name**: `surname`
72+
- **SAML Attribute Name**: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname`
73+
- **Friendly Name**: Leave blank
74+
- **Expression**:
75+
76+
```python
77+
return request.user.name.split(" ", 1)[-1]
78+
```
79+
80+
5. Click **Finish**.
5581

5682
### Create an application and provider in authentik
5783

@@ -66,6 +92,7 @@ To support the integration of GLPI with authentik, you need to create an applica
6692
- Under **Advanced protocol settings**:
6793
- Select any available **Signing Certificate** and enable **Sign assertions**.
6894
- Set **NameID Property Mapping** to `authentik default SAML Mapping: Email`.
95+
- Under **Property mappings**, add the two property mappings that you created in the previous section: `givenname` and `surname`.
6996
- **Configure Bindings** _(optional)_: you can create a [binding](/docs/add-secure-apps/bindings-overview/) (policy, group, or user) to manage the listing and access to applications on a user's **My applications** page.
7097

7198
3. Click **Submit** to save the new application and provider.

0 commit comments

Comments
 (0)