From 0ae53dbc8ea6c1daeddf24fbdc8a50ac978df2a8 Mon Sep 17 00:00:00 2001 From: ATM Platform Date: Tue, 16 Jun 2026 21:13:23 +0000 Subject: [PATCH] fix: realm JSON no repo + configmaps com novo dominio --- tenants/demo/35-realm-import-cm.yaml | 39 +++++++++++++++++++++ tenants/demo/realm/athleticmap-realm.json | 32 +++++++++++++++++ tenants/piloto/35-realm-import-cm.yaml | 39 +++++++++++++++++++++ tenants/piloto/realm/athleticmap-realm.json | 32 +++++++++++++++++ 4 files changed, 142 insertions(+) create mode 100644 tenants/demo/realm/athleticmap-realm.json create mode 100644 tenants/piloto/realm/athleticmap-realm.json diff --git a/tenants/demo/35-realm-import-cm.yaml b/tenants/demo/35-realm-import-cm.yaml index e69de29..3ed9413 100644 --- a/tenants/demo/35-realm-import-cm.yaml +++ b/tenants/demo/35-realm-import-cm.yaml @@ -0,0 +1,39 @@ +apiVersion: v1 +data: + athleticmap-realm.json: | + { + "realm": "athleticmap", + "enabled": true, + "displayName": "Athletic Map", + "loginWithEmailAllowed": true, + "roles": { + "realm": [ + { "name": "admin" }, + { "name": "atm_athlete" }, + { "name": "atm_trainer" }, + { "name": "atm_team_admin" }, + { "name": "atm_fed_admin" } + ] + }, + "clients": [ + { + "clientId": "spa", + "name": "Athletic Map SPA", + "publicClient": true, + "protocol": "openid-connect", + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "redirectUris": ["https://demo.athleticmap.influxdigital.com.br/*"], + "webOrigins": ["https://demo.athleticmap.influxdigital.com.br"], + "attributes": { + "pkce.code.challenge.method": "S256", + "post.logout.redirect.uris": "https://demo.athleticmap.influxdigital.com.br/*" + } + } + ] + } +kind: ConfigMap +metadata: + name: kc-realm-import + namespace: demo-prod diff --git a/tenants/demo/realm/athleticmap-realm.json b/tenants/demo/realm/athleticmap-realm.json new file mode 100644 index 0000000..7d6ec9b --- /dev/null +++ b/tenants/demo/realm/athleticmap-realm.json @@ -0,0 +1,32 @@ +{ + "realm": "athleticmap", + "enabled": true, + "displayName": "Athletic Map", + "loginWithEmailAllowed": true, + "roles": { + "realm": [ + { "name": "admin" }, + { "name": "atm_athlete" }, + { "name": "atm_trainer" }, + { "name": "atm_team_admin" }, + { "name": "atm_fed_admin" } + ] + }, + "clients": [ + { + "clientId": "spa", + "name": "Athletic Map SPA", + "publicClient": true, + "protocol": "openid-connect", + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "redirectUris": ["https://demo.athleticmap.influxdigital.com.br/*"], + "webOrigins": ["https://demo.athleticmap.influxdigital.com.br"], + "attributes": { + "pkce.code.challenge.method": "S256", + "post.logout.redirect.uris": "https://demo.athleticmap.influxdigital.com.br/*" + } + } + ] +} diff --git a/tenants/piloto/35-realm-import-cm.yaml b/tenants/piloto/35-realm-import-cm.yaml index e69de29..6268ebd 100644 --- a/tenants/piloto/35-realm-import-cm.yaml +++ b/tenants/piloto/35-realm-import-cm.yaml @@ -0,0 +1,39 @@ +apiVersion: v1 +data: + athleticmap-realm.json: | + { + "realm": "athleticmap", + "enabled": true, + "displayName": "Athletic Map", + "loginWithEmailAllowed": true, + "roles": { + "realm": [ + { "name": "admin" }, + { "name": "atm_athlete" }, + { "name": "atm_trainer" }, + { "name": "atm_team_admin" }, + { "name": "atm_fed_admin" } + ] + }, + "clients": [ + { + "clientId": "spa", + "name": "Athletic Map SPA", + "publicClient": true, + "protocol": "openid-connect", + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "redirectUris": ["https://piloto.athleticmap.influxdigital.com.br/*"], + "webOrigins": ["https://piloto.athleticmap.influxdigital.com.br"], + "attributes": { + "pkce.code.challenge.method": "S256", + "post.logout.redirect.uris": "https://piloto.athleticmap.influxdigital.com.br/*" + } + } + ] + } +kind: ConfigMap +metadata: + name: kc-realm-import + namespace: piloto-prod diff --git a/tenants/piloto/realm/athleticmap-realm.json b/tenants/piloto/realm/athleticmap-realm.json new file mode 100644 index 0000000..e95f9cc --- /dev/null +++ b/tenants/piloto/realm/athleticmap-realm.json @@ -0,0 +1,32 @@ +{ + "realm": "athleticmap", + "enabled": true, + "displayName": "Athletic Map", + "loginWithEmailAllowed": true, + "roles": { + "realm": [ + { "name": "admin" }, + { "name": "atm_athlete" }, + { "name": "atm_trainer" }, + { "name": "atm_team_admin" }, + { "name": "atm_fed_admin" } + ] + }, + "clients": [ + { + "clientId": "spa", + "name": "Athletic Map SPA", + "publicClient": true, + "protocol": "openid-connect", + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "redirectUris": ["https://piloto.athleticmap.influxdigital.com.br/*"], + "webOrigins": ["https://piloto.athleticmap.influxdigital.com.br"], + "attributes": { + "pkce.code.challenge.method": "S256", + "post.logout.redirect.uris": "https://piloto.athleticmap.influxdigital.com.br/*" + } + } + ] +}