Skip to content

Commit

Permalink
chore: add additional saml scopes and mappers for gitlab (#77)
Browse files Browse the repository at this point in the history
* chore: add additional saml scopes and mappers for gitlab

* add descriptions and remove role list mapper
  • Loading branch information
ericwyles authored May 8, 2024
1 parent ee7bf69 commit 6dcc557
Showing 1 changed file with 91 additions and 6 deletions.
97 changes: 91 additions & 6 deletions src/realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@
{
"id": "463c56b8-d219-4706-bacd-03eea5ac24be",
"name": "mapper-saml-username-name",
"description": "",
"description": "Includes a protocol mapper to map the 'Username' user property to the SAML 'name' attribute.",
"protocol": "saml",
"attributes": {
"include.in.token.scope": "false",
Expand All @@ -1303,7 +1303,7 @@
{
"id": "a9967f77-178b-4cbe-aff7-e6ec2e88e55a",
"name": "mapper-saml-username-login",
"description": "",
"description": "Includes a protocol mapper to map the 'Username' user property to the SAML 'login' attribute.",
"protocol": "saml",
"attributes": {
"include.in.token.scope": "false",
Expand All @@ -1329,7 +1329,7 @@
{
"id": "a49616d1-4e40-41c0-8e75-e202893d59e2",
"name": "mapper-saml-email-email",
"description": "",
"description": "Includes a protocol mapper to map the 'Email' user property to the SAML 'email' attribute.",
"protocol": "saml",
"attributes": {
"include.in.token.scope": "false",
Expand All @@ -1352,10 +1352,92 @@
}
]
},
{
"id": "c35be8d3-be77-4c0e-a082-e7c75b1c113d",
"name": "mapper-saml-firstname-first_name",
"description": "Includes a protocol mapper to map the 'FirstName' user property to the SAML 'first_name' attribute.",
"protocol": "saml",
"attributes": {
"include.in.token.scope": "false",
"display.on.consent.screen": "true",
"gui.order": "",
"consent.screen.text": ""
},
"protocolMappers": [
{
"id": "abee8168-3e89-4f14-ab3f-861a104c84ee",
"name": "mapper-saml-firstname-first_name",
"protocol": "saml",
"protocolMapper": "saml-user-property-mapper",
"consentRequired": false,
"config": {
"attribute.nameformat": "Basic",
"user.attribute": "FirstName",
"friendly.name": "First Name",
"attribute.name": "first_name"
}
}
]
},
{
"id": "cc86dcea-6f78-457e-bf45-fa0724ae584a",
"name": "mapper-saml-lastname-last_name",
"description": "Includes a protocol mapper to map the 'LastName' user property to the SAML 'last_name' attribute.",
"protocol": "saml",
"attributes": {
"include.in.token.scope": "false",
"display.on.consent.screen": "true",
"gui.order": "",
"consent.screen.text": ""
},
"protocolMappers": [
{
"id": "b6458185-a6d1-4f04-950f-ed3fe5b225e5",
"name": "mapper-saml-lastname-last_name",
"protocol": "saml",
"protocolMapper": "saml-user-property-mapper",
"consentRequired": false,
"config": {
"attribute.nameformat": "Basic",
"user.attribute": "LastName",
"friendly.name": "Last Name",
"attribute.name": "last_name"
}
}
]
},
{
"id": "5cc78c57-364a-44b8-8990-cde82ace3fe1",
"name": "mapper-saml-grouplist-groups",
"description": "Includes a protocol mapper to map the user's assigned groups to the SAML 'Groups' attribute.",
"protocol": "saml",
"attributes": {
"include.in.token.scope": "false",
"display.on.consent.screen": "true",
"gui.order": "",
"consent.screen.text": ""
},
"protocolMappers": [
{
"id": "ba004bd2-43e6-455c-8660-050b99266e94",
"name": "mapper-saml-grouplist-groups",
"protocol": "saml",
"protocolMapper": "saml-group-membership-mapper",
"consentRequired": false,
"config": {
"single": "false",
"attribute.nameformat": "Basic",
"full.path": "true",
"friendly.name": "groups",
"attribute.name": "Groups"
}
}
]
},
{
"id": "14bc33e6-545f-4df7-a9c4-7d05b1b12a89",
"name": "mapper-oidc-username-username",
"description": "",
"description": "Includes a protocol mapper to map the 'username' user property to the token 'username' claim.",
"protocol": "openid-connect",
"attributes": {
"include.in.token.scope": "false",
Expand Down Expand Up @@ -1386,7 +1468,7 @@
{
"id": "80675602-8135-4421-b42c-a0635e7cb0a8",
"name": "mapper-oidc-mattermostid-id",
"description": "",
"description": "Includes a protocol mapper to map the 'mattermostid' user attribute to the token 'id' claim.",
"protocol": "openid-connect",
"attributes": {
"include.in.token.scope": "false",
Expand Down Expand Up @@ -1417,7 +1499,7 @@
{
"id": "22244009-5342-4e37-a924-7d3398985585",
"name": "mapper-oidc-email-email",
"description": "",
"description": "Includes a protocol mapper to map the 'email' user attribute to the token 'email' claim.",
"protocol": "openid-connect",
"attributes": {
"include.in.token.scope": "false",
Expand Down Expand Up @@ -1689,6 +1771,9 @@
"mapper-saml-username-name",
"mapper-saml-email-email",
"mapper-saml-username-login",
"mapper-saml-firstname-first_name",
"mapper-saml-lastname-last_name",
"mapper-saml-grouplist-groups",
"mapper-oidc-username-username",
"mapper-oidc-mattermostid-id",
"mapper-oidc-email-email"
Expand Down

0 comments on commit 6dcc557

Please sign in to comment.