All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
profiles.input.linkedin.json Maven / Gradle / Ivy
{
"ver": "2",
"name": "sys:linkedin",
"description": "Translation profile for LinkedIn authn",
"type": "INPUT",
"rules": [
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapIdentity",
"parameters": [
"identifier",
"attr['id']",
"sys:all",
"CREATE_OR_MATCH"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"name",
"/",
"(attr contains 'localizedHeadline') ? (attr['localizedHeadline']) : (attr['localizedFirstName'] + ' ' + attr['localizedLastName'])",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"email",
"/",
"attrObj.?elements[0]['handle~'].?emailAddress + '[CONFIRMED]'",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"firstname",
"/",
"attr['localizedFirstName']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"surname",
"/",
"attr['localizedLastName']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "attrObj contains 'profilePicture'"
},
"action": {
"name": "mapAttribute",
"parameters": [
"pictureURL",
"/",
"attrObj['profilePicture']['displayImage~']['elements'][0]['identifiers'][0]['identifier']",
"CREATE_OR_UPDATE"
]
}
}
]
}