Debian Codegraph @

doc/source/specification/credentials.rst

raw
1 ..
2 Copyright 2014 IBM Corp.
3
4 Licensed under the Apache License, Version 2.0 (the "License"); you may
5 not use this file except in compliance with the License. You may obtain
6 a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 License for the specific language governing permissions and limitations
14 under the License.
15
16 .. _credentials:
17
18 ============
19 Credentials
20 ============
21
22 This type provides a means to describe various credentials along with any
23 information about the authority that is responsible for maintaining them.
24 This is intended to be associated with a CADF Resource's identity and reflects
25 any authorizations or identity assertions the resource may use to gain access
26 to other resources.
27
28 ========== ========= ======== ===================================================================================================
29 Property Type Required Description
30 ========== ========= ======== ===================================================================================================
31 type xs:anyURI No Type of credential. (e.g., auth. token, identity token, etc.)
32 token xs:any Yes The primary opaque or non-opaque identity or security token (e.g., an opaque or obfuscated user ID)
33 authority xs:anyURI No The trusted authority (a service) that understands and can verify the credential.
34 assertions cadf:Map No Optional list of additional assertions or attributes that belong to the credential
35 ========== ========= ======== ===================================================================================================
36
37 Serialisation
38 =============
39
40 .. code-block:: javascript
41
42 {
43 "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event",
44 "action": "authenticate",
45 ...,
46 "initiator": {
47 "id": "[email protected]",
48 "typeURI": "data/security/account/user",
49 ...,
50 "credential": {
51 "type": "https://mycloud.com/v2/token",
52 "token": "myuuid:1ef0-abdf-xxxx-xxxx"
53 }
54 }
55 }