update_servicegateway_3.2.7.js
1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
use SERVICEGATEWAY
db.auth("mongoapp", "mOng0@pp")
db.admin_user.drop()
db.createCollection("admin_user", {})
db.admin_user.insert( {
"username" : "admin",
"password" : "nIkgyeBnaysxBa6bNaHz5g=="
} )
db.external_apis_type.drop()
db.createCollection('external_apis_type', {})
db.external_apis_type.insert([{
"_id" : 1,
"labelName" : "Static - Dropdown",
"value" : "staticdropdown",
"active" : true
},{
"_id" : 2,
"labelName" : "Web Service - Dropdown",
"value" : "webservicedropdown",
"active" : true
},{
"_id" : 3,
"labelName" : "Web Service - APIs",
"value" : "webserviceapis",
"active" : true
},{
"_id" : 4,
"labelName" : "JSON Service - Dropdown",
"value" : "jsonservicedropdown",
"active" : true
},{
"_id" : 5,
"labelName" : "JSON Service - APIs",
"value" : "jsonserviceapis",
"active" : true
}])
db.authentication_type.drop()
db.createCollection('authentication_type', {})
db.authentication_type.insert([{
"_id" : 1,
"labelName" : "OAuth 2.0",
"value" : "OAuth 2.0",
"active" : true
}])
db.grant_type.drop()
db.createCollection('grant_type', {})
db.grant_type.insert([{
"_id" : 1,
"labelName" : "Client Credentials",
"value" : "client_credentials",
"active" : true
},{
"_id" : 2,
"labelName" : "Password",
"value" : "password",
"active" : true
}])