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.facebook.json Maven / Gradle / Ivy
{
"ver": "2",
"name": "sys:facebook",
"description": "Translation profile for facebook 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": [
"country",
"/",
"attrObj.?address.?country",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"street",
"/",
"attrObj.?address.?street",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"postalCode",
"/",
"attrObj.?address.?zip",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"provinceName",
"/",
"attrObj.?address.?region",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"city",
"/",
"attrObj.?address.?city",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"countryCode",
"/",
"attrObj.?address.?country_code",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "(attrObj contains 'address') && (attrObj['address'] contains 'street') && (attrObj['address'] contains 'city') && (attrObj['address'] contains 'zip') && (attrObj['address'] contains 'region') && (attrObj['address'] contains 'country')"
},
"action": {
"name": "mapAttribute",
"parameters": [
"address",
"/",
"attrObj.?address.?street + ', ' + attrObj.?address.?city + ', ' + attrObj.?address.?zip + ', ' + attrObj.?address.?region + ', ' + attrObj.?address.?country",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "(attr contains 'birthday') && (attr['birthday'].length() == 10)"
},
"action": {
"name": "mapAttribute",
"parameters": [
"birthday",
"/",
"attr['birthday']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"currency",
"/",
"attrObj.?currency.?user_currency",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "attr contains 'email'"
},
"action": {
"name": "mapAttribute",
"parameters": [
"email",
"/",
"attr['email'] + '[CONFIRMED]'",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"firstname",
"/",
"attr['first_name']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"gender",
"/",
"attr['gender']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"surname",
"/",
"attr['last_name']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"locale",
"/",
"attr['locale']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"middleName",
"/",
"attr['middle_name']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"name",
"/",
"attr['name']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"pgpPublicKey",
"/",
"attr['public_key']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"timezone",
"/",
"attr['timezone']",
"CREATE_OR_UPDATE"
]
}
},
{
"condition": {
"conditionValue": "true"
},
"action": {
"name": "mapAttribute",
"parameters": [
"website",
"/",
"attr['website']",
"CREATE_OR_UPDATE"
]
}
}
]
}