-
Notifications
You must be signed in to change notification settings - Fork 6
/
kickstart.json
97 lines (97 loc) · 3.38 KB
/
kickstart.json
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"variables": {
"applicationId": "E9FDB985-9173-4E01-9D73-AC2D60D1DC8E",
"apiKey": "this_really_should_be_a_long_random_alphanumeric_value_but_this_still_works_dont_use_this_in_prod",
"asymmetricKeyId": "#{UUID()}",
"clientSecret": "this_really_should_be_a_long_random_alphanumeric_value_but_this_still_works_dont_use_this_in_prod",
"defaultTenantId": "d7d09513-a3f5-401c-9685-34ab6c552453",
"adminEmail": "[email protected]",
"adminPassword": "password",
"adminUserId": "00000000-0000-0000-0000-000000000001",
"userEmail": "[email protected]",
"userPassword": "password",
"userUserId": "00000000-0000-0000-0000-111111111111"
},
"apiKeys": [
{
"key": "#{apiKey}",
"description": "Unrestricted API key"
}
],
"requests": [
{
"method": "POST",
"url": "/api/key/generate/#{asymmetricKeyId}",
"tenantId": "#{defaultTenantId}",
"body": {
"key": {
"algorithm": "RS256",
"name": "For exampleapp",
"length": 2048
}
}
},
{
"method": "POST",
"url": "/api/application/#{applicationId}",
"tenantId": "#{defaultTenantId}",
"body": {
"application": {
"name": "ExampleNodeApp",
"oauthConfiguration" : {
"authorizedRedirectURLs": ["http://localhost:3000/oauth-callback"],
"logoutURL": "http://localhost:4200/",
"clientSecret": "#{clientSecret}",
"enabledGrants": ["authorization_code", "refresh_token"]
},
"jwtConfiguration": {
"enabled": true,
"accessTokenKeyId": "#{asymmetricKeyId}",
"idTokenKeyId": "#{asymmetricKeyId}"
}
}
}
},
{
"method": "POST",
"url": "/api/user/registration/#{adminUserId}",
"body": {
"registration": {
"applicationId": "#{FUSIONAUTH_APPLICATION_ID}",
"roles": [ "admin" ]
},
"roles": [ "admin" ],
"skipRegistrationVerification": true,
"user": {
"birthDate": "1981-06-04",
"data": {
"favoriteColor": "chartreuse"
},
"email": "#{adminEmail}",
"firstName": "Dinesh",
"lastName": "Chugtai",
"password": "#{adminPassword}"
}
}
},
{
"method": "POST",
"url": "/api/user/registration/#{userUserId}",
"body": {
"user": {
"birthDate": "1985-11-23",
"email": "#{userEmail}",
"firstName": "Fred",
"lastName": "Flintstone",
"password": "#{userPassword}"
},
"registration": {
"applicationId": "#{applicationId}",
"data": {
"favoriteColor": "turquoise"
}
}
}
}
]
}