12 `AID Authentication Non-AAF`_
25 Steps to test AAF MUSIC has been enhanced to support applications which are already authenticated using AAF and applications which are not authenticated using AAF.
27 If an application has already been using AAF, it should have required namespace, userId and password.
29 **Non AAF applications (AID)** Works just like AAF but Namespace is an app name and MUSIC manages the User instead of AAF
31 All the required params should be sent as headers.
33 Changed in Cassandra: Admin needs to create the following keyspace and table.
35 In the cassandra bin dir run ./cqlsh and log in to db then:
37 If you want to save the following in a file you can then run ./cqlsh -f <file.cql>
43 //Create Admin Keyspace
47 'class' : 'SimpleStrategy',
48 'replication_factor': 1
50 AND DURABLE_WRITES = true;
52 CREATE TABLE admin.keyspace_master (
55 application_name text,
69 //Create Admin Keyspace
73 'class' : 'NetworkTopologyStrategy',
76 AND DURABLE_WRITES = true;
78 CREATE TABLE admin.keyspace_master (
81 application_name text,
92 For AAF applications all the 3 headers ns, userId and password are mandatory.
94 For Non AAF applications if aid is not provided MUSIC creates new random unique UUID and returns to caller.
96 Caller application then need to save the UUID and need to pass the UUID to further modify/access the keyspace.
104 Key : Value : Description
105 ns : org.onap.aaf : AAF Namespace
106 userId : username : USer Id
107 password: password : Password of User
109 AID Authentication Non-AAF
110 ^^^^^^^^^^^^^^^^^^^^^^^^^^
114 Key : Value : Description
115 ns : App Name : App Name
116 userId : username : Username for this user (Required during Create keyspace Only)
117 password: password : Password for this user (Required during Create keyspace Only)
127 POST URL: /MUSIC/rest/v2/admin/onboardAppWithMusic with JSON as follows:
130 "appname": "<the Namespace for aaf or the Identifier for the specific app using AID access",
131 "userId" : "<userid>",
132 "isAAF" : true/false,
141 POST URL: /MUSIC/rest/v2/admin/search with JSON as follows:
144 "appname": "<the Namespace for aaf or the Identifier for the specific app using AID access",
145 "isAAF" : true/false,
146 "aid" : "Unique ID for this user"
154 PUT URL: /MUSIC/rest/v2/admin/onboardAppWithMusic with JSON as follows:
157 "aid" : "Unique ID for this user",
158 "appname": "<the Namespace for aaf or the Identifier for the specific app using AID access",
159 "userId" : "<userid>",
160 "isAAF" : true/false,
169 DELETE URL: /MUSIC/rest/v2/admin/onboardAppWithMusic with JSON as follows:
172 "aid" : "Unique ID for this app"