Added missing nextcloud mappers

darta 2021-12-09 15:12:50 +01:00
parent 23bd3d27cf
commit a43fc0f05a
1 changed files with 38 additions and 0 deletions

View File

@ -221,6 +221,18 @@ class NextcloudSaml():
"attribute.name" : "username" "attribute.name" : "username"
} }
}, { }, {
"id" : "8ab13cd7-822a-40d5-a1e1-9f556aed2332",
"name" : "quota",
"protocol" : "saml",
"protocolMapper" : "saml-user-attribute-mapper",
"consentRequired" : False,
"config" : {
"attribute.nameformat" : "Basic",
"user.attribute" : "quota",
"friendly.name" : "quota",
"attribute.name" : "quota"
}
}, {
"id" : "28206b59-757b-4e3c-81cb-0b6053b1fd3d", "id" : "28206b59-757b-4e3c-81cb-0b6053b1fd3d",
"name" : "email", "name" : "email",
"protocol" : "saml", "protocol" : "saml",
@ -233,6 +245,19 @@ class NextcloudSaml():
"attribute.name" : "email" "attribute.name" : "email"
} }
}, { }, {
"id" : "5176a593-180f-4924-b294-b83a0d8d5972",
"name" : "displayname",
"protocol" : "saml",
"protocolMapper" : "saml-javascript-mapper",
"consentRequired" : False,
"config" : {
"single" : False,
"Script" : "/**\n * Available variables: \n * user - the current user\n * realm - the current realm\n * clientSession - the current clientSession\n * userSession - the current userSession\n * keycloakSession - the current keycloakSession\n */\n\n\n//insert your code here...\nvar Output = user.getFirstName()+\" \"+user.getLastName();\nOutput;\n",
"attribute.nameformat" : "Basic",
"friendly.name" : "displayname",
"attribute.name" : "displayname"
}
}, {
"id" : "e51e04b9-f71a-42de-819e-dd9285246ada", "id" : "e51e04b9-f71a-42de-819e-dd9285246ada",
"name" : "Roles", "name" : "Roles",
"protocol" : "saml", "protocol" : "saml",
@ -244,6 +269,19 @@ class NextcloudSaml():
"friendly.name" : "Roles", "friendly.name" : "Roles",
"attribute.name" : "Roles" "attribute.name" : "Roles"
} }
}, {
"id" : "9c101249-bb09-4cc8-8f75-5a18fcb307e6",
"name" : "group_list",
"protocol" : "saml",
"protocolMapper" : "saml-group-membership-mapper",
"consentRequired" : False,
"config" : {
"single" : True,
"attribute.nameformat" : "Basic",
"full.path" : False,
"friendly.name" : "member",
"attribute.name" : "member"
}
} ], } ],
"defaultClientScopes" : [ "web-origins", "role_list", "roles", "profile", "email" ], "defaultClientScopes" : [ "web-origins", "role_list", "roles", "profile", "email" ],
"optionalClientScopes" : [ "address", "phone", "offline_access", "microprofile-jwt" ], "optionalClientScopes" : [ "address", "phone", "offline_access", "microprofile-jwt" ],