-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in the IdentityMap and IdentityItem schemas from #523
- Loading branch information
1 parent
98f44df
commit c9b7721
Showing
2 changed files
with
63 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/xdm/context/identityitem", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Identity Item", | ||
"type": "object", | ||
"meta:extensible": true, | ||
"description": | ||
"An end-user identity item, to be included in an instance of `context/identitymap`", | ||
"definitions": { | ||
"identityitem": { | ||
"properties": { | ||
"xdm:id": { | ||
"title": "Identifier", | ||
"type": "string", | ||
"description": "Identity of the consumer in the related namespace." | ||
}, | ||
"xdm:authenticatedState": { | ||
"description": | ||
"The state this identity is authenticated as for this observed ExperienceEvent.", | ||
"type": "string", | ||
"default": "ambiguous", | ||
"enum": ["ambiguous", "authenticated", "loggedOut"], | ||
"meta:enum": { | ||
"ambiguous": "Ambiguous", | ||
"authenticated": "User identified by a login or simular action that was valid at the time of the event observation.", | ||
"loggedOut": "User was identified by a login action at some point of time previously, but is not currently logged in." | ||
} | ||
}, | ||
"xdm:primary": { | ||
"title": "Primary", | ||
"type": "boolean", | ||
"default": false, | ||
"description": | ||
"Indicates this identity is the preferred identity. Is used as a hint to help systems better organize how identities are queried." | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" | ||
}, | ||
{ | ||
"$ref": "#/definitions/identityitem" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters