Config these env variables:
- AAC_CLIENT_ID : client id
- AAC_ISSUER_URI : e.g. https://aac.platform.smartcommunitylab.it
- LOG_LEVEL : default log level, e.g. info
- LOGS : where store the logs file, e.g. /home/dev/playfuledu/logs
- SPRING_DATA_MONGODB_URL : e.g. mongodb://localhost:27017/playful-edu
- X_AUTH_TOKEN : a security API key token; set it as
x-auth
header key
To add an admin
role, in MongoDb create a collection roles and add a document
{
"preferredUsername" : "test@test.com",
"role" : "admin"
}
To add a domain
role, e.g. for the test domain, in MongoDb create a collection roles and add a document
{
"preferredUsername" : "test@test.com",
"role" : "domain",
"entityId" : "test"
}