Update Keycloak server URL to include /kcauth in configuration files
This commit is contained in:
@@ -24,7 +24,7 @@ class Settings(BaseSettings):
|
||||
CORE_DB_PASSWORD: str = "postgres"
|
||||
|
||||
# Keycloak
|
||||
KEYCLOAK_SERVER_URL: str = "http://localhost:8080"
|
||||
KEYCLOAK_SERVER_URL: str = "http://localhost:8080/kcauth"
|
||||
KEYCLOAK_REALM: str = "master"
|
||||
KEYCLOAK_CLIENT_ID: str = "anexo76-backend"
|
||||
KEYCLOAK_CLIENT_SECRET: str = ""
|
||||
@@ -43,7 +43,7 @@ class Settings(BaseSettings):
|
||||
LICENSE_CHECK_ENABLED: bool = True
|
||||
|
||||
model_config = SettingsConfigDict(
|
||||
env_file=".env", case_sensitive=True, extra="ignore"
|
||||
env_file=".env", case_sensitive=True, extra="ignore", env_file_encoding="utf-8"
|
||||
)
|
||||
|
||||
@property
|
||||
|
||||
@@ -17,7 +17,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
# Configuración de Keycloak
|
||||
keycloak_openid = KeycloakOpenID(
|
||||
server_url=settings.KEYCLOAK_SERVER_URL,
|
||||
server_url=f"{settings.KEYCLOAK_SERVER_URL}/kcauth",
|
||||
client_id=settings.KEYCLOAK_CLIENT_ID,
|
||||
realm_name=settings.KEYCLOAK_REALM,
|
||||
client_secret_key=settings.KEYCLOAK_CLIENT_SECRET,
|
||||
|
||||
Reference in New Issue
Block a user