/
kickstart.json
135 lines (135 loc) · 3.55 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
125
126
127
128
129
130
131
132
133
134
135
{
"variables": {
"applicationId": "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e",
"clientSecret": "super-secret-secret-that-should-be-regenerated-for-production",
"apiKey": "this_really_should_be_a_long_random_alphanumeric_value_but_this_still_works",
"asymmetricKeyId": "#{UUID()}",
"defaultTenantId": "d7d09513-a3f5-401c-9685-34ab6c552453",
"adminEmail": "admin@example.com",
"adminPassword": "password",
"tellerEmail": "teller@example.com",
"tellerPassword": "password",
"tellerUserId": "00000000-0000-0000-0000-111111111111",
"customerEmail": "customer@example.com",
"customerPassword": "password",
"customerUserId": "00000000-0000-0000-0000-222222222222"
},
"apiKeys": [
{
"key": "#{apiKey}",
"description": "Unrestricted API key"
}
],
"requests": [
{
"method": "PATCH",
"url": "/api/tenant/#{defaultTenantId}",
"body": {
"tenant": {
"issuer": "http://localhost:9011"
}
}
},
{
"method": "POST",
"url": "/api/key/generate/#{asymmetricKeyId}",
"tenantId": "#{defaultTenantId}",
"body": {
"key": {
"algorithm": "RS256",
"name": "For Example Laravel API",
"length": 2048
}
}
},
{
"method": "POST",
"url": "/api/user/registration",
"body": {
"user": {
"email": "#{adminEmail}",
"password": "#{adminPassword}"
},
"registration": {
"applicationId": "#{FUSIONAUTH_APPLICATION_ID}",
"roles": [
"admin"
]
}
}
},
{
"method": "POST",
"url": "/api/application/#{applicationId}",
"tenantId": "#{defaultTenantId}",
"body": {
"application": {
"name": "Example Laravel API",
"oauthConfiguration": {
"authorizedRedirectURLs": [],
"clientSecret": "#{clientSecret}",
"logoutURL": "http://localhost/logout",
"enabledGrants": [
"authorization_code",
"refresh_token"
],
"debug": true,
"generateRefreshTokens": true
},
"jwtConfiguration": {
"enabled": true,
"accessTokenKeyId": "#{asymmetricKeyId}",
"idTokenKeyId": "#{asymmetricKeyId}"
},
"registrationConfiguration": {
"enabled": true
},
"roles": [
{
"name": "teller"
},
{
"name": "customer"
}
]
}
}
},
{
"method": "POST",
"url": "/api/user/registration/#{tellerUserId}",
"body": {
"user": {
"birthDate": "1985-11-23",
"email": "#{tellerEmail}",
"firstName": "Tammy",
"lastName": "Teller",
"fullName": "Tammy Teller",
"password": "#{tellerPassword}"
},
"registration": {
"applicationId": "#{applicationId}",
"roles": [ "teller" ]
}
}
},
{
"method": "POST",
"url": "/api/user/registration/#{customerUserId}",
"body": {
"user": {
"birthDate": "1985-11-23",
"email": "#{customerEmail}",
"firstName": "Charlie",
"lastName": "Customer",
"fullName": "Charlie Customer",
"password": "#{customerPassword}"
},
"registration": {
"applicationId": "#{applicationId}",
"roles": [ "customer" ]
}
}
}
]
}