9 `AID Authentication Non-AAF`_
22 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.
24 If an application has already been using AAF, it should have required namespace, userId and password.
26 **Non AAF applications (AID)** Works just like AAF but Namespace is an app name and MUSIC manages the User instead of AAF
28 All the required params should be sent as headers.
30 Changed in Cassandra: Admin needs to create the following keyspace and table.
32 In the cassandra bin dir run ./cqlsh and log in to db then:
34 If you want to save the following in a file you can then run ./cqlsh -f <file.cql>
40 //Create Admin Keyspace
44 'class' : 'SimpleStrategy',
45 'replication_factor': 1
47 AND DURABLE_WRITES = true;
49 CREATE TABLE admin.keyspace_master (
52 application_name text,
66 //Create Admin Keyspace
70 'class' : 'NetworkTopologyStrategy',
73 AND DURABLE_WRITES = true;
75 CREATE TABLE admin.keyspace_master (
78 application_name text,
89 For AAF applications all the 3 headers ns, userId and password are mandatory.
91 For Non AAF applications if aid is not provided MUSIC creates new random unique UUID and returns to caller.
93 Caller application then need to save the UUID and need to pass the UUID to further modify/access the keyspace.
101 Key : Value : Description
102 ns : org.onap.aaf : AAF Namespace
103 userId : username : USer Id
104 password: password : Password of User
106 AID Authentication Non-AAF
107 ^^^^^^^^^^^^^^^^^^^^^^^^^^
111 Key : Value : Description
112 ns : App Name : App Name
113 userId : username : Username for this user (Required during Create keyspace Only)
114 password: password : Password for this user (Required during Create keyspace Only)
124 POST URL: /MUSIC/rest/v2/admin/onboardAppWithMusic with JSON as follows:
127 "appname": "<the Namespace for aaf or the Identifier for the specific app using AID access",
128 "userId" : "<userid>",
129 "isAAF" : true/false,
138 POST URL: /MUSIC/rest/v2/admin/search with JSON as follows:
141 "appname": "<the Namespace for aaf or the Identifier for the specific app using AID access",
142 "isAAF" : true/false,
143 "aid" : "Unique ID for this user"
151 PUT URL: /MUSIC/rest/v2/admin/onboardAppWithMusic with JSON as follows:
154 "aid" : "Unique ID for this user",
155 "appname": "<the Namespace for aaf or the Identifier for the specific app using AID access",
156 "userId" : "<userid>",
157 "isAAF" : true/false,
166 DELETE URL: /MUSIC/rest/v2/admin/onboardAppWithMusic with JSON as follows:
169 "aid" : "Unique ID for this app"