Hi, I am fairly new to FusionAuth and have the same issue as the original poster.
The Kickstart file I created does not allow the user to login to access the admin interface.
What I attempting to do is run locally in Docker containers, so that the same set up can be used by another developer from docker compose.
Please could I have some help with the Kickstart file?
It runs, does not appear to throw any errors in the fusionauth logs, but i cannot login.
Please find enclosed the kickstart file and the docker compose snippet.
Regards
Chris
Kickstart file
{
"variables": {
"adminEmail": "admin@fusionauth.io",
"password": "apassword",
"defaultTenantId": "68e4bbcf-f44b-a066-34c1-d53bdd4e4810",
"applicationId": "80640732-cecc-4962-9928-6937bee1090a"
},
"apiKeys": [
{
"key": "nvbt6nwmxyHQVy2F7xYCgSgLww4ssUy9csmzVAEJatS4mkp7H2vGogJI",
"description": "Standard development API key"
}
],
"requests": [
{
"method": "POST",
"url": "/api/application/80640732-cecc-4962-9928-6937bee1090a",
"body": {
"application": {
"name": "LocalApp",
"roles": [
{
"name": "admin"
},
{
"name": "user"
},
{
"name": "user-admin"
}
],
"oauthConfiguration": {
"clientSecret": "AsCh5TTgB_JmeSr57P15M31S0nblbbak5h15ZHU7kVc",
"clientID": "80640732-cecc-4962-9928-6937bee1090a",
"authorizedOriginURLs": [
"http://localhost:3000",
"http://localhost:3016"
],
"authorizedRedirectURLs": [
"http://localhost:3000/api/v1/auth/callback"
],
"enabledGrants": [
"authorization_code",
"password",
"refresh_token"
],
"logoutURL": "http://localhost:3000/api/v1/auth/logout",
"generateRefreshToken": true
}
}
}
},
{
"method": "POST",
"url": "/api/user/registration/00000000-0000-0000-0000-000000000001",
"body": {
"skipRegistrationVerification": true,
"user": {
"email": "john@genericcompany.com",
"firstName": "John",
"lastName": "Smith",
"password": "apassword",
"imageUrl": ""
},
"registration": {
"applicationId": "80640732-cecc-4962-9928-6937bee1090a",
"roles": [
"admin"
]
}
}
},
{
"method": "POST",
"url": "/api/user/registration/00000000-0000-0000-0000-000000000002",
"body": {
"skipRegistrationVerification": true,
"user": {
"email": "james@genericcompany.com",
"firstName": "James",
"lastName": "Smith",
"password": "apassword",
"imageUrl": ""
},
"registration": {
"applicationId": "80640732-cecc-4962-9928-6937bee1090a",
"roles": [
"admin"
]
}
}
},
{
"method": "POST",
"url": "/api/user/registration/00000000-0000-0000-0000-000000000003",
"body": {
"user": {
"email": "adam@genericcompany.com",
"firstName": "Adam",
"lastName": "Smith",
"password": "apassword",
"imageUrl": ""
},
"registration": {
"applicationId": "80640732-cecc-4962-9928-6937bee1090a",
"roles": [
"admin",
"user",
"user-admin"
]
}
}
},
{
"method": "POST",
"url": "/api/user/registration/00000000-0000-0000-0000-000000000004",
"body": {
"user": {
"email": "jane@genericcompany.com",
"firstName": "Jane",
"lastName": "Smith",
"password": "apassword",
"imageUrl": ""
},
"registration": {
"applicationId": "80640732-cecc-4962-9928-6937bee1090a",
"roles": [
"user"
]
}
}
},
{
"method": "POST",
"url": "/api/user/registration/00000000-0000-0000-0000-000000000005",
"body": {
"user": {
"email": "helga@genericcompany.com",
"firstName": "Helga",
"lastName": "Smith",
"password": "apassword",
"imageUrl": ""
},
"registration": {
"applicationId": "80640732-cecc-4962-9928-6937bee1090a",
"roles": [
"user"
]
}
}
},
{
"method": "POST",
"url": "/api/user/registration/00000000-0000-0000-0000-000000000006",
"body": {
"user": {
"email": "Susan@genericcompany.com",
"firstName": "Susan",
"lastName": "Smith",
"password": "apassword",
"imageUrl": ""
},
"registration": {
"applicationId": "80640732-cecc-4962-9928-6937bee1090a",
"roles": [
"user"
]
}
}
}
]
}
Docker compose snippet
fusionauth:
image: fusionauth/fusionauth-app:1.43.0
container_name: fusionauth
depends_on:
authdb:
condition: service_healthy
environment:
DATABASE_URL: jdbc:postgresql://authdb:5432/${POSTGRES_DB}
DATABASE_ROOT_USERNAME: ${POSTGRES_USER}
DATABASE_ROOT_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
FUSIONAUTH_APP_MEMORY: ${FUSIONAUTH_APP_MEMORY}
FUSIONAUTH_APP_RUNTIME_MODE: development
FUSIONAUTH_APP_URL: http://localhost:9011
SEARCH_TYPE: database
FUSIONAUTH_APP_KICKSTART_FILE: ${FUSIONAUTH_APP_KICKSTART_FILE}
networks:
- localnet
restart: unless-stopped
ports:
- 9011:9011
volumes:
- ./conf/fusionauth/config:/usr/local/fusionauth/config
- ./conf/fusionauth/kickstart:/usr/local/fusionauth/kickstart
- ./volumes/fusionauth/logs:/usr/local/fusionauth/logs
authdb:
image: postgres:12.5-alpine
container_name: authdb
hostname: authdb
ports:
- "5433:5432"
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
networks:
- localnet
restart: unless-stopped
volumes:
- ./volumes/authdb:/var/lib/postgresql/data