diff --git a/kickstart/kickstart.json b/kickstart/kickstart.json index 0ff0012..babc3bc 100644 --- a/kickstart/kickstart.json +++ b/kickstart/kickstart.json @@ -1,126 +1,135 @@ { - "variables": { - "apiKey": "33052c8a-c283-4e96-9d2a-eb1215c69f8f-not-for-prod", - "asymmetricKeyId": "#{UUID()}", - "applicationId": "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e", - "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" + "variables": { + "apiKey": "33052c8a-c283-4e96-9d2a-eb1215c69f8f-not-for-prod", + "asymmetricKeyId": "#{UUID()}", + "applicationId": "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e", + "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 exampleapp", + "length": 2048 + } + } }, - "apiKeys": [ - { - "key": "#{apiKey}", - "description": "Unrestricted API key" + { + "method": "POST", + "url": "/api/application/#{applicationId}", + "tenantId": "#{defaultTenantId}", + "body": { + "application": { + "name": "ExampleNodeApp", + "oauthConfiguration": { + "authorizedRedirectURLs": [ + "http://localhost:3000/api/auth/callback/fusionauth" + ], + "logoutURL": "http://localhost:3000/api/auth/", + "clientSecret": "#{clientSecret}", + "enabledGrants": [ + "authorization_code", + "refresh_token" + ] + }, + "jwtConfiguration": { + "enabled": true, + "accessTokenKeyId": "#{asymmetricKeyId}", + "idTokenKeyId": "#{asymmetricKeyId}" + } } - ], - "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/api/auth/callback/fusionauth"], - "logoutURL": "http://localhost:3000/api/auth/", - "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" - } - } - } - }, - { - "method": "POST", - "url": "/api/theme/#{newThemeId}", - "body": { - "sourceThemeId": "75a068fd-e94b-451a-9aeb-3ddb9a3b5987", - "theme": { - "name": "React theme" - } - } + } + }, + { + "method": "POST", + "url": "/api/user/registration/#{adminUserId}", + "body": { + "registration": { + "applicationId": "#{FUSIONAUTH_APPLICATION_ID}", + "roles": [ + "admin" + ] }, - { - "method": "PATCH", - "url": "/api/theme/#{newThemeId}", - "body": { - "theme": { - "stylesheet": "@{css/styles.css}" - } - } + "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}" }, - { - "method": "PATCH", - "url": "/api/tenant/#{defaultTenantId}", - "body": { - "tenant": { - "themeId": "#{newThemeId}" - } - } + "registration": { + "applicationId": "#{applicationId}", + "data": { + "favoriteColor": "turquoise" + } + } + } + }, + { + "method": "POST", + "url": "/api/theme/#{newThemeId}", + "body": { + "sourceThemeId": "75a068fd-e94b-451a-9aeb-3ddb9a3b5987", + "theme": { + "name": "React theme" + } + } + }, + { + "method": "PATCH", + "url": "/api/theme/#{newThemeId}", + "body": { + "theme": { + "stylesheet": "@{css/styles.css}" + } + } + }, + { + "method": "PATCH", + "url": "/api/tenant/#{defaultTenantId}", + "body": { + "tenant": { + "themeId": "#{newThemeId}" } - ] + } + } + ] }