Files
athletic-map-deploy/moldes/realm-do-tenant.json
T

140 lines
3.7 KiB
JSON

{
"realm": "{{REALM}}",
"enabled": true,
"displayName": "Athletic Map — {{TENANT}}",
"loginWithEmailAllowed": true,
"resetPasswordAllowed": true,
"rememberMe": true,
"roles": {
"realm": [
{
"name": "admin"
},
{
"name": "atm_athlete"
},
{
"name": "atm_trainer"
},
{
"name": "atm_team_admin"
},
{
"name": "atm_fed_admin"
},
{
"name": "atm_admin"
},
{
"name": "atm_cadastro"
},
{
"name": "atm_financeiro"
},
{
"name": "atm_financeiro-leitura"
}
]
},
"clients": [
{
"clientId": "spa",
"name": "Athletic Map SPA",
"publicClient": true,
"protocol": "openid-connect",
"standardFlowEnabled": true,
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": [
"https://{{TENANT}}.athleticmap.com/*"
],
"webOrigins": [
"https://{{TENANT}}.athleticmap.com"
],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://{{TENANT}}.athleticmap.com/*"
},
"protocolMappers": [
{
"name": "funcionario_id",
"protocol": "openid-connect",
"protocolMapper": "oidc-usermodel-attribute-mapper",
"consentRequired": false,
"config": {
"user.attribute": "funcionario_id",
"claim.name": "funcionario_id",
"jsonType.label": "String",
"id.token.claim": "true",
"access.token.claim": "true",
"userinfo.token.claim": "true"
}
}
]
},
{
"clientId": "app",
"name": "Athletic Map App (mobile)",
"publicClient": true,
"protocol": "openid-connect",
"standardFlowEnabled": true,
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": [
"com.athleticmap.app:/oauthredirect",
"http://127.0.0.1:8765/oauthredirect",
"http://localhost:8765/oauthredirect",
"https://{{TENANT}}.athleticmap.com/app/callback"
],
"webOrigins": [
"https://{{TENANT}}.athleticmap.com",
"http://127.0.0.1:8765",
"http://localhost:8765"
],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "com.athleticmap.app:/oauthredirect##http://127.0.0.1:8765/oauthredirect##http://localhost:8765/oauthredirect##https://{{TENANT}}.athleticmap.com/app/callback"
},
"protocolMappers": [
{
"name": "funcionario_id",
"protocol": "openid-connect",
"protocolMapper": "oidc-usermodel-attribute-mapper",
"consentRequired": false,
"config": {
"user.attribute": "funcionario_id",
"claim.name": "funcionario_id",
"jsonType.label": "String",
"id.token.claim": "true",
"access.token.claim": "true",
"userinfo.token.claim": "true"
}
}
]
}
],
"attributes": {
"frontendUrl": "https://auth.athleticmap.com"
},
"smtpServer": {
"host": "{{SMTP_HOST}}",
"port": "{{SMTP_PORTA}}",
"from": "{{SMTP_REMETENTE}}",
"fromDisplayName": "Athletic Map",
"replyTo": "{{SMTP_RESPONDER_PARA}}",
"replyToDisplayName": "Athletic Map",
"auth": "{{SMTP_AUTH}}",
"user": "{{SMTP_USUARIO}}",
"password": "{{SMTP_SENHA}}",
"starttls": "{{SMTP_STARTTLS}}",
"ssl": "false"
},
"loginTheme": "athleticmap-v2",
"emailTheme": "athleticmap-v2",
"internationalizationEnabled": true,
"defaultLocale": "pt-BR",
"supportedLocales": [
"pt-BR"
]
}