Skip to content

Instantly share code, notes, and snippets.

@jgomer2001
Last active February 7, 2019 12:26
Show Gist options
  • Save jgomer2001/b15777f7200526cc62500649d97da1fc to your computer and use it in GitHub Desktop.
Save jgomer2001/b15777f7200526cc62500649d97da1fc to your computer and use it in GitHub Desktop.
Showcases how some different attribute mappings could look
[
{
"id" : "saml_ldap",
"description": "Mapping based on SAML X.500/LDAP Attribute profile",
"editable": false,
"mapping": [
{ "local": "uid", "remote": "urn:oid:0.9.2342.19200300.100.1.1" },
{ "local": "mail", "remote": "urn:oid:0.9.2342.19200300.100.1.3" },
{ "local": "displayName", "remote": "urn:oid:2.16.840.1.113730.3.1.241" },
{ "local": "givenName", "remote": "urn:oid:2.5.4.42" },
{ "local": "sn", "remote": "urn:oid:2.5.4.4" },
{ "local": "memberOf", "remote": "urn:1.3.6.1.4.1.48710.1.3.121" }
]
},
{
"id": "saml_basic",
"description": "Mapping based on SAML Basic Attribute profile",
"editable": false,
"mapping": [
{ "local": "uid", "remote": "email" },
{ "local": "mail", "remote": "email" },
{ "local": "displayName", "remote": "displayName"},
{ "local": "givenName", "remote": "firstName" },
{ "local": "sn", "remote": "lastName" },
{ "local": "memberOf", "remote": "groups" }
]
},
{
"id" : "oidc",
"description" : "Mapping based OpenID Connect Standard Claims, see http://openid.net/specs/openid-connect-core-1_0.html#StandardClaims",
"editable": false,
"mapping": [
{ "local": "uid", "remote": "sub" },
{ "local": "mail", "remote": "email" },
{ "local": "givenName", "remote" : "given_name" },
{ "local": "sn", "remote": "family_name" }
]
},
{
"id" : "oauth",
"description" : "Mapping based on common profile attributes released by most social networking sites",
"editable": false,
"mapping": [
{ "local": "uid", "remote": "id" },
{ "local": "displayName", "remote": "displayName" },
{ "local": "mail", "remote": "emails" },
{ "local": "sn", "remote": "name.familyName" }
]
}
]
@jgomer2001
Copy link
Author

jgomer2001 commented Jan 4, 2019

Notes:

  • editable: When false, it means this mapping is bundled out of the box in Gluu and cannot be edited. When no mapping satisfies the needs of a particular external provider, a new mapping can be created from scratch or by reusing a previously existing mapping (ie using it as a template)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment