/
kickstart.json
124 lines (124 loc) · 3.23 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"variables": {
"applicationId": "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e",
"apiKey": "this_really_should_be_a_long_random_alphanumeric_value_but_this_still_works",
"asymmetricKeyId": "#{UUID()}",
"clientSecret": "super-secret-secret-that-should-be-regenerated-for-production",
"newThemeId": "#{UUID()}",
"defaultTenantId": "d7d09513-a3f5-401c-9685-34ab6c552453",
"adminEmail": "admin@example.com",
"adminPassword": "password",
"adminUserId": "00000000-0000-0000-0000-000000000001",
"userEmail": "richard@example.com",
"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 Example Android App",
"length": 2048
}
}
},
{
"method": "POST",
"url": "/api/user/registration/#{adminUserId}",
"body": {
"user": {
"email": "#{adminEmail}",
"password": "#{adminPassword}"
},
"registration": {
"applicationId": "#{FUSIONAUTH_APPLICATION_ID}",
"roles": [
"admin"
]
},
"skipRegistrationVerification": true
}
},
{
"method": "POST",
"url": "/api/application/#{applicationId}",
"tenantId": "#{defaultTenantId}",
"body": {
"application": {
"name": "Example Android App",
"oauthConfiguration": {
"authorizedRedirectURLs": [
"io.fusionauth.app:/oauth2redirect"
],
"clientAuthenticationPolicy": "NotRequiredWhenUsingPKCE",
"proofKeyForCodeExchangePolicy": "Required",
"clientSecret": "#{clientSecret}",
"enabledGrants": [
"authorization_code",
"refresh_token"
]
},
"jwtConfiguration": {
"enabled": true,
"accessTokenKeyId": "#{asymmetricKeyId}",
"idTokenKeyId": "#{asymmetricKeyId}"
}
}
}
},
{
"method": "POST",
"url": "/api/user/registration/#{userUserId}",
"body": {
"user": {
"birthDate": "1985-11-23",
"email": "#{userEmail}",
"firstName": "Richard",
"lastName": "Hendricks",
"password": "#{userPassword}"
},
"registration": {
"applicationId": "#{applicationId}"
}
}
},
{
"method": "POST",
"url": "/api/theme/#{newThemeId}",
"body": {
"sourceThemeId": "75a068fd-e94b-451a-9aeb-3ddb9a3b5987",
"theme": {
"name": "ChangeBank theme"
}
}
},
{
"method": "PATCH",
"url": "/api/theme/#{newThemeId}",
"body": {
"theme": {
"stylesheet": "@{css/styles.css}"
}
}
},
{
"method": "PATCH",
"url": "/api/tenant/#{defaultTenantId}",
"body": {
"tenant": {
"themeId": "#{newThemeId}"
}
}
}
]
}