All Downloads are FREE. Search and download functionalities are using the official Maven repository.

profiles.input.github.json Maven / Gradle / Ivy

{
	"ver": "2",
	"name": "sys:github",
	"description": "Translation profile for github 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": [
					"userName",
					"/",
					"attr['login']",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"locality",
					"/",
					"attr['location']",
					"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": [
					"name",
					"/",
					"attr['name']",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"profileURL",
					"/",
					"attr['html_url']",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"city",
					"/",
					"attr['location']",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"company",
					"/",
					"attr['company']",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "attr contains 'blog' && attr['blog'].length > 0"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"blog",
					"/",
					"attr['blog']",
					"CREATE_OR_UPDATE"
				]
			}
		},
		{
			"condition": {
				"conditionValue": "true"
			},
			"action": {
				"name": "mapAttribute",
				"parameters": [
					"avatarURL",
					"/",
					"attr['avatar_url']",
					"CREATE_OR_UPDATE"
				]
			}
		}
	]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy