|
1 | 1 | { |
2 | | - "variables": { |
3 | | - "allowedOrigin": "http://localhost:4200", |
4 | | - "authorizedRedirectURL": "http://localhost:4200", |
5 | | - "authorizedOriginURL": "http://localhost:4200", |
6 | | - "logoutURL": "http://localhost:4200", |
7 | | - "applicationId": "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e", |
8 | | - "apiKey": "this_really_should_be_a_long_random_alphanumeric_value_but_this_still_works", |
9 | | - "asymmetricKeyId": "#{UUID()}", |
10 | | - "newThemeId": "#{UUID()}", |
11 | | - "defaultTenantId": "d7d09513-a3f5-401c-9685-34ab6c552453", |
12 | | - "adminEmail": "admin@example.com", |
13 | | - "adminPassword": "password", |
14 | | - "userEmail": "richard@example.com", |
15 | | - "userPassword": "password", |
16 | | - "userUserId": "00000000-0000-0000-0000-111111111111" |
| 2 | + "variables": { |
| 3 | + "allowedOrigin": "http://localhost:4200", |
| 4 | + "authorizedRedirectURL": "http://localhost:4200", |
| 5 | + "authorizedOriginURL": "http://localhost:4200", |
| 6 | + "logoutURL": "http://localhost:4200", |
| 7 | + "applicationId": "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e", |
| 8 | + "apiKey": "this_really_should_be_a_long_random_alphanumeric_value_but_this_still_works", |
| 9 | + "asymmetricKeyId": "#{UUID()}", |
| 10 | + "newThemeId": "#{UUID()}", |
| 11 | + "defaultTenantId": "d7d09513-a3f5-401c-9685-34ab6c552453", |
| 12 | + "adminEmail": "admin@example.com", |
| 13 | + "adminPassword": "password", |
| 14 | + "userEmail": "richard@example.com", |
| 15 | + "userPassword": "password", |
| 16 | + "userUserId": "00000000-0000-0000-0000-111111111111" |
| 17 | + }, |
| 18 | + "apiKeys": [ |
| 19 | + { |
| 20 | + "key": "#{apiKey}", |
| 21 | + "description": "Unrestricted API key" |
| 22 | + } |
| 23 | + ], |
| 24 | + "requests": [ |
| 25 | + { |
| 26 | + "method": "POST", |
| 27 | + "url": "/api/key/generate/#{asymmetricKeyId}", |
| 28 | + "tenantId": "#{defaultTenantId}", |
| 29 | + "body": { |
| 30 | + "key": { |
| 31 | + "algorithm": "RS256", |
| 32 | + "name": "For exampleapp", |
| 33 | + "length": 2048 |
| 34 | + } |
| 35 | + } |
17 | 36 | }, |
18 | | - "apiKeys": [ |
19 | | - { |
20 | | - "key": "#{apiKey}", |
21 | | - "description": "Unrestricted API key" |
| 37 | + { |
| 38 | + "method": "PATCH", |
| 39 | + "url": "api/system-configuration", |
| 40 | + "body": { |
| 41 | + "systemConfiguration": { |
| 42 | + "corsConfiguration": { |
| 43 | + "allowCredentials": true, |
| 44 | + "allowedMethods": [ |
| 45 | + "GET", |
| 46 | + "POST", |
| 47 | + "OPTIONS" |
| 48 | + ], |
| 49 | + "allowedOrigins": [ |
| 50 | + "#{allowedOrigin}" |
| 51 | + ], |
| 52 | + "debug": false, |
| 53 | + "enabled": true, |
| 54 | + "preflightMaxAgeInSeconds": 0 |
| 55 | + } |
22 | 56 | } |
23 | | - ], |
24 | | - "requests": [ |
25 | | - { |
26 | | - "method": "POST", |
27 | | - "url": "/api/key/generate/#{asymmetricKeyId}", |
28 | | - "tenantId": "#{defaultTenantId}", |
29 | | - "body": { |
30 | | - "key": { |
31 | | - "algorithm": "RS256", |
32 | | - "name": "For exampleapp", |
33 | | - "length": 2048 |
34 | | - } |
35 | | - } |
36 | | - }, |
37 | | - { |
38 | | - "method": "PATCH", |
39 | | - "url": "api/system-configuration", |
40 | | - "body": { |
41 | | - "systemConfiguration": { |
42 | | - "corsConfiguration": { |
43 | | - "allowCredentials": true, |
44 | | - "allowedMethods": [ |
45 | | - "GET", |
46 | | - "POST", |
47 | | - "OPTIONS" |
48 | | - ], |
49 | | - "allowedOrigins": [ |
50 | | - "#{allowedOrigin}" |
51 | | - ], |
52 | | - "debug": false, |
53 | | - "enabled": true, |
54 | | - "preflightMaxAgeInSeconds": 0 |
55 | | - } |
56 | | - } |
57 | | - } |
58 | | - }, |
59 | | - { |
60 | | - "method": "POST", |
61 | | - "url": "/api/user/registration", |
62 | | - "body": { |
63 | | - "user": { |
64 | | - "email": "#{adminEmail}", |
65 | | - "password": "#{adminPassword}" |
66 | | - }, |
67 | | - "registration": { |
68 | | - "applicationId": "#{FUSIONAUTH_APPLICATION_ID}", |
69 | | - "roles": [ |
70 | | - "admin" |
71 | | - ] |
72 | | - } |
73 | | - } |
74 | | - }, |
75 | | - { |
76 | | - "method": "PATCH", |
77 | | - "url": "/api/tenant/#{defaultTenantId}", |
78 | | - "body": { |
79 | | - "tenant": { |
80 | | - "issuer": "http://localhost:9011" |
81 | | - } |
82 | | - } |
83 | | - }, |
84 | | - { |
85 | | - "method": "POST", |
86 | | - "url": "/api/application/#{applicationId}", |
87 | | - "tenantId": "#{defaultTenantId}", |
88 | | - "body": { |
89 | | - "application": { |
90 | | - "name": "Example app", |
91 | | - "oauthConfiguration": { |
92 | | - "authorizedRedirectURLs": [ |
93 | | - "#{authorizedRedirectURL}" |
94 | | - ], |
95 | | - "authorizedOriginURLs": [ |
96 | | - "#{authorizedOriginURL}" |
97 | | - ], |
98 | | - "clientSecret": "super-secret-secret-that-should-be-regenerated-for-production", |
99 | | - "logoutURL": "#{logoutURL}", |
100 | | - "enabledGrants": [ |
101 | | - "authorization_code", |
102 | | - "refresh_token" |
103 | | - ], |
104 | | - "debug": true, |
105 | | - "generateRefreshTokens": true, |
106 | | - "requireRegistration": true |
107 | | - }, |
108 | | - "jwtConfiguration": { |
109 | | - "enabled": true, |
110 | | - "accessTokenKeyId": "#{asymmetricKeyId}", |
111 | | - "idTokenKeyId": "#{asymmetricKeyId}" |
112 | | - }, |
113 | | - "registrationConfiguration": { |
114 | | - "enabled": true |
115 | | - } |
116 | | - } |
117 | | - } |
118 | | - }, |
119 | | - { |
120 | | - "method": "POST", |
121 | | - "url": "/api/user/registration/#{userUserId}", |
122 | | - "body": { |
123 | | - "user": { |
124 | | - "birthDate": "1985-11-23", |
125 | | - "email": "#{userEmail}", |
126 | | - "firstName": "Richard", |
127 | | - "lastName": "Hendricks", |
128 | | - "password": "#{userPassword}" |
129 | | - }, |
130 | | - "registration": { |
131 | | - "applicationId": "#{applicationId}" |
132 | | - } |
133 | | - } |
134 | | - }, |
135 | | - { |
136 | | - "method": "POST", |
137 | | - "url": "/api/theme/#{newThemeId}", |
138 | | - "body": { |
139 | | - "sourceThemeId": "75a068fd-e94b-451a-9aeb-3ddb9a3b5987", |
140 | | - "theme": { |
141 | | - "name": "React theme" |
142 | | - } |
143 | | - } |
| 57 | + } |
| 58 | + }, |
| 59 | + { |
| 60 | + "method": "POST", |
| 61 | + "url": "/api/user/registration", |
| 62 | + "body": { |
| 63 | + "user": { |
| 64 | + "email": "#{adminEmail}", |
| 65 | + "password": "#{adminPassword}" |
144 | 66 | }, |
145 | | - { |
146 | | - "method": "PATCH", |
147 | | - "url": "/api/theme/#{newThemeId}", |
148 | | - "body": { |
149 | | - "theme": { |
150 | | - "stylesheet": "@{css/styles.css}" |
151 | | - } |
152 | | - } |
| 67 | + "registration": { |
| 68 | + "applicationId": "#{FUSIONAUTH_APPLICATION_ID}", |
| 69 | + "roles": [ |
| 70 | + "admin" |
| 71 | + ] |
| 72 | + } |
| 73 | + } |
| 74 | + }, |
| 75 | + { |
| 76 | + "method": "PATCH", |
| 77 | + "url": "/api/tenant/#{defaultTenantId}", |
| 78 | + "body": { |
| 79 | + "tenant": { |
| 80 | + "issuer": "http://localhost:9011" |
| 81 | + } |
| 82 | + } |
| 83 | + }, |
| 84 | + { |
| 85 | + "method": "POST", |
| 86 | + "url": "/api/application/#{applicationId}", |
| 87 | + "tenantId": "#{defaultTenantId}", |
| 88 | + "body": { |
| 89 | + "application": { |
| 90 | + "name": "Example app", |
| 91 | + "oauthConfiguration": { |
| 92 | + "authorizedRedirectURLs": [ |
| 93 | + "#{authorizedRedirectURL}" |
| 94 | + ], |
| 95 | + "authorizedOriginURLs": [ |
| 96 | + "#{authorizedOriginURL}" |
| 97 | + ], |
| 98 | + "clientSecret": "super-secret-secret-that-should-be-regenerated-for-production", |
| 99 | + "logoutURL": "#{logoutURL}", |
| 100 | + "enabledGrants": [ |
| 101 | + "authorization_code", |
| 102 | + "refresh_token" |
| 103 | + ], |
| 104 | + "debug": true, |
| 105 | + "generateRefreshTokens": true, |
| 106 | + "requireRegistration": true |
| 107 | + }, |
| 108 | + "jwtConfiguration": { |
| 109 | + "enabled": true, |
| 110 | + "accessTokenKeyId": "#{asymmetricKeyId}", |
| 111 | + "idTokenKeyId": "#{asymmetricKeyId}" |
| 112 | + }, |
| 113 | + "registrationConfiguration": { |
| 114 | + "enabled": true |
| 115 | + } |
| 116 | + } |
| 117 | + } |
| 118 | + }, |
| 119 | + { |
| 120 | + "method": "POST", |
| 121 | + "url": "/api/user/registration/#{userUserId}", |
| 122 | + "body": { |
| 123 | + "user": { |
| 124 | + "birthDate": "1985-11-23", |
| 125 | + "email": "#{userEmail}", |
| 126 | + "firstName": "Richard", |
| 127 | + "lastName": "Hendricks", |
| 128 | + "password": "#{userPassword}" |
153 | 129 | }, |
154 | | - { |
155 | | - "method": "PATCH", |
156 | | - "url": "/api/tenant/#{defaultTenantId}", |
157 | | - "body": { |
158 | | - "tenant": { |
159 | | - "themeId": "#{newThemeId}" |
160 | | - } |
161 | | - } |
| 130 | + "registration": { |
| 131 | + "applicationId": "#{applicationId}" |
| 132 | + } |
| 133 | + } |
| 134 | + }, |
| 135 | + { |
| 136 | + "method": "POST", |
| 137 | + "url": "/api/theme/#{newThemeId}", |
| 138 | + "body": { |
| 139 | + "sourceThemeId": "75a068fd-e94b-451a-9aeb-3ddb9a3b5987", |
| 140 | + "theme": { |
| 141 | + "name": "React theme" |
| 142 | + } |
| 143 | + } |
| 144 | + }, |
| 145 | + { |
| 146 | + "method": "PATCH", |
| 147 | + "url": "/api/theme/#{newThemeId}", |
| 148 | + "body": { |
| 149 | + "theme": { |
| 150 | + "stylesheet": "@{css/styles.css}" |
| 151 | + } |
| 152 | + } |
| 153 | + }, |
| 154 | + { |
| 155 | + "method": "PATCH", |
| 156 | + "url": "/api/tenant/#{defaultTenantId}", |
| 157 | + "body": { |
| 158 | + "tenant": { |
| 159 | + "themeId": "#{newThemeId}" |
162 | 160 | } |
163 | | - ] |
| 161 | + } |
| 162 | + } |
| 163 | + ] |
164 | 164 | } |
0 commit comments