feat(P0.9): fase realm - o realm passa a aceitar os dois dominios

This commit is contained in:
ATM Platform
2026-09-23 12:14:17 +00:00
parent 440ade90f5
commit 5e1bf3a00b
10 changed files with 80 additions and 70 deletions
+3 -3
View File
@@ -24,11 +24,11 @@ data:
"standardFlowEnabled": true,
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": ["https://acme.athleticmap.influxdigital.com.br/*"],
"webOrigins": ["https://acme.athleticmap.influxdigital.com.br"],
"redirectUris": ["https://acme.athleticmap.influxdigital.com.br/*", "https://acme.athleticmap.com/*"],
"webOrigins": ["https://acme.athleticmap.influxdigital.com.br", "https://acme.athleticmap.com"],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://acme.athleticmap.influxdigital.com.br/*"
"post.logout.redirect.uris": "https://acme.athleticmap.influxdigital.com.br/*##https://acme.athleticmap.com/*"
}
}
]
+5 -3
View File
@@ -40,14 +40,16 @@
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": [
"https://acme.athleticmap.influxdigital.com.br/*"
"https://acme.athleticmap.influxdigital.com.br/*",
"https://acme.athleticmap.com/*"
],
"webOrigins": [
"https://acme.athleticmap.influxdigital.com.br"
"https://acme.athleticmap.influxdigital.com.br",
"https://acme.athleticmap.com"
],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://acme.athleticmap.influxdigital.com.br/*"
"post.logout.redirect.uris": "https://acme.athleticmap.influxdigital.com.br/*##https://acme.athleticmap.com/*"
}
}
]
+3 -3
View File
@@ -24,11 +24,11 @@ data:
"standardFlowEnabled": true,
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": ["https://demo.athleticmap.influxdigital.com.br/*"],
"webOrigins": ["https://demo.athleticmap.influxdigital.com.br"],
"redirectUris": ["https://demo.athleticmap.influxdigital.com.br/*", "https://demo.athleticmap.com/*"],
"webOrigins": ["https://demo.athleticmap.influxdigital.com.br", "https://demo.athleticmap.com"],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://demo.athleticmap.influxdigital.com.br/*"
"post.logout.redirect.uris": "https://demo.athleticmap.influxdigital.com.br/*##https://demo.athleticmap.com/*"
}
}
]
+5 -3
View File
@@ -40,14 +40,16 @@
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": [
"https://demo.athleticmap.influxdigital.com.br/*"
"https://demo.athleticmap.influxdigital.com.br/*",
"https://demo.athleticmap.com/*"
],
"webOrigins": [
"https://demo.athleticmap.influxdigital.com.br"
"https://demo.athleticmap.influxdigital.com.br",
"https://demo.athleticmap.com"
],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://demo.athleticmap.influxdigital.com.br/*"
"post.logout.redirect.uris": "https://demo.athleticmap.influxdigital.com.br/*##https://demo.athleticmap.com/*"
}
}
]
+3 -3
View File
@@ -27,11 +27,11 @@ data:
"standardFlowEnabled": true,
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": ["https://escolinha.athleticmap.influxdigital.com.br/*"],
"webOrigins": ["https://escolinha.athleticmap.influxdigital.com.br"],
"redirectUris": ["https://escolinha.athleticmap.influxdigital.com.br/*", "https://escolinha.athleticmap.com/*"],
"webOrigins": ["https://escolinha.athleticmap.influxdigital.com.br", "https://escolinha.athleticmap.com"],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://escolinha.athleticmap.influxdigital.com.br/*"
"post.logout.redirect.uris": "https://escolinha.athleticmap.influxdigital.com.br/*##https://escolinha.athleticmap.com/*"
}
}
]
@@ -40,14 +40,16 @@
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": [
"https://escolinha.athleticmap.influxdigital.com.br/*"
"https://escolinha.athleticmap.influxdigital.com.br/*",
"https://escolinha.athleticmap.com/*"
],
"webOrigins": [
"https://escolinha.athleticmap.influxdigital.com.br"
"https://escolinha.athleticmap.influxdigital.com.br",
"https://escolinha.athleticmap.com"
],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://escolinha.athleticmap.influxdigital.com.br/*"
"post.logout.redirect.uris": "https://escolinha.athleticmap.influxdigital.com.br/*##https://escolinha.athleticmap.com/*"
}
}
]
+3 -3
View File
@@ -24,11 +24,11 @@ data:
"standardFlowEnabled": true,
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": ["https://piloto.athleticmap.influxdigital.com.br/*"],
"webOrigins": ["https://piloto.athleticmap.influxdigital.com.br"],
"redirectUris": ["https://piloto.athleticmap.influxdigital.com.br/*", "https://piloto.athleticmap.com/*"],
"webOrigins": ["https://piloto.athleticmap.influxdigital.com.br", "https://piloto.athleticmap.com"],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://piloto.athleticmap.influxdigital.com.br/*"
"post.logout.redirect.uris": "https://piloto.athleticmap.influxdigital.com.br/*##https://piloto.athleticmap.com/*"
}
}
]
+5 -3
View File
@@ -40,14 +40,16 @@
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": [
"https://piloto.athleticmap.influxdigital.com.br/*"
"https://piloto.athleticmap.influxdigital.com.br/*",
"https://piloto.athleticmap.com/*"
],
"webOrigins": [
"https://piloto.athleticmap.influxdigital.com.br"
"https://piloto.athleticmap.influxdigital.com.br",
"https://piloto.athleticmap.com"
],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://piloto.athleticmap.influxdigital.com.br/*"
"post.logout.redirect.uris": "https://piloto.athleticmap.influxdigital.com.br/*##https://piloto.athleticmap.com/*"
}
}
]
+43 -43
View File
@@ -1,43 +1,43 @@
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" },
{ "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://plataforma.athleticmap.influxdigital.com.br/*"],
"webOrigins": ["https://plataforma.athleticmap.influxdigital.com.br"],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://plataforma.athleticmap.influxdigital.com.br/*"
}
}
]
}
kind: ConfigMap
metadata:
name: kc-realm-import
namespace: plataforma-prod
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" },
{ "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://plataforma.athleticmap.influxdigital.com.br/*", "https://plataforma.athleticmap.com/*"],
"webOrigins": ["https://plataforma.athleticmap.influxdigital.com.br", "https://plataforma.athleticmap.com"],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://plataforma.athleticmap.influxdigital.com.br/*##https://plataforma.athleticmap.com/*"
}
}
]
}
kind: ConfigMap
metadata:
name: kc-realm-import
namespace: plataforma-prod
@@ -44,14 +44,16 @@
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": false,
"redirectUris": [
"https://plataforma.athleticmap.influxdigital.com.br/*"
"https://plataforma.athleticmap.influxdigital.com.br/*",
"https://plataforma.athleticmap.com/*"
],
"webOrigins": [
"https://plataforma.athleticmap.influxdigital.com.br"
"https://plataforma.athleticmap.influxdigital.com.br",
"https://plataforma.athleticmap.com"
],
"attributes": {
"pkce.code.challenge.method": "S256",
"post.logout.redirect.uris": "https://plataforma.athleticmap.influxdigital.com.br/*"
"post.logout.redirect.uris": "https://plataforma.athleticmap.influxdigital.com.br/*##https://plataforma.athleticmap.com/*"
},
"protocolMappers": [
{