Merge "Update local examples to arrays in federation docs"

This commit is contained in:
Jenkins
2014-02-26 21:00:03 +00:00
committed by Gerrit Code Review

View File

@@ -72,7 +72,7 @@ Required attributes::
A rule contains a `remote` attribute description and the destination `local` A rule contains a `remote` attribute description and the destination `local`
attribute. attribute.
- `local` (object) - `local` (list of objects)
References a local Identity API resource, such as a `group` or `user` to References a local Identity API resource, such as a `group` or `user` to
which the remote attributes will be mapped. which the remote attributes will be mapped.
@@ -83,7 +83,9 @@ Required attributes::
local resource type and attribute: local resource type and attribute:
{ {
"user": "name" "user": {
"name": "{0}"
}
} }
This assigns identity attributes to ephemeral users. This assigns identity attributes to ephemeral users.
@@ -362,11 +364,13 @@ Request:
"mapping": { "mapping": {
"rules": [ "rules": [
{ {
"local": { "local": [
"group": { {
"id": "0cd5e9" "group": {
"id": "0cd5e9"
}
} }
}, ],
"remote": [ "remote": [
{ {
"type": "orgPersonType", "type": "orgPersonType",
@@ -393,11 +397,13 @@ Response:
"id": "ACME", "id": "ACME",
"rules": [ "rules": [
{ {
"local": { "local": [
"group": { {
"id": "0cd5e9" "group": {
"id": "0cd5e9"
}
} }
}, ],
"remote": [ "remote": [
{ {
"type": "orgPersonType", "type": "orgPersonType",
@@ -426,11 +432,13 @@ Response:
"id": "ACME", "id": "ACME",
"rules": [ "rules": [
{ {
"local": { "local": [
"group": { {
"id": "0cd5e9" "group": {
"id": "0cd5e9"
}
} }
}, ],
"remote": [ "remote": [
{ {
"type": "orgPersonType", "type": "orgPersonType",
@@ -454,11 +462,13 @@ Request:
"id": "ACME", "id": "ACME",
"rules": [ "rules": [
{ {
"local": { "local": [
"group": { {
"id": "0cd5e9" "group": {
"id": "0cd5e9"
}
} }
}, ],
"remote": [ "remote": [
{ {
"type": "orgPersonType", "type": "orgPersonType",
@@ -485,11 +495,13 @@ Response:
"id": "ACME", "id": "ACME",
"rules": [ "rules": [
{ {
"local": { "local": [
"group": { {
"id": "0cd5e9" "group": {
"id": "0cd5e9"
}
} }
}, ]
"remote": [ "remote": [
{ {
"type": "orgPersonType", "type": "orgPersonType",
@@ -521,11 +533,13 @@ Response:
"id": "ACME", "id": "ACME",
"rules": [ "rules": [
{ {
"local": { "local": [
"group": { {
"id": "0cd5e9" "group": {
"id": "0cd5e9"
}
} }
}, ],
"remote": [ "remote": [
{ {
"type": "orgPersonType", "type": "orgPersonType",
@@ -558,11 +572,13 @@ mapped into a Identity API property.
{ {
"rules": [ "rules": [
{ {
"local": { "local":[
"user": { {
"name": "{0}" "user": {
"name": "{0}"
}
} }
}, ],
"remote": [ "remote": [
{ {
"type": "UserName" "type": "UserName"
@@ -580,11 +596,13 @@ type and value are mapped into a Identity API property and value.
{ {
"rules": [ "rules": [
{ {
"local": { "local": [
"group": { {
"id": "0cd5e9" "group": {
"id": "0cd5e9"
}
} }
}, ],
"remote": [ "remote": [
{ {
"type": "orgPersonType", "type": "orgPersonType",
@@ -596,11 +614,13 @@ type and value are mapped into a Identity API property and value.
] ]
}, },
{ {
"local": { "local": [
"group": { {
"id": "85a868" "group": {
"id": "85a868"
}
} }
}, ],
"remote": [ "remote": [
{ {
"type": "orgPersonType", "type": "orgPersonType",
@@ -622,11 +642,13 @@ This is an example that is similar to the previous, but displays how multiple
{ {
"rules": [ "rules": [
{ {
"local": { "local": [
"group": { {
"id": "85a868" "group": {
"id": "85a868"
}
} }
}, ],
"remote": [ "remote": [
{ {
"type": "orgPersonType", "type": "orgPersonType",