fix: use AUTHENTIK_USERNAME/PASSWORD env vars to match production
Build and Push / build (release) Successful in 28s
Build and Push / build (release) Successful in 28s
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
4f45f9bf37
commit
ee93a73160
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.4.1] - 2026-01-01
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Authentik config now uses AUTHENTIK_USERNAME/PASSWORD to match production env vars
|
||||||
|
|
||||||
## [1.4.0] - 2026-01-01
|
## [1.4.0] - 2026-01-01
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "core-api"
|
name = "core-api"
|
||||||
version = "1.4.0"
|
version = "1.4.1"
|
||||||
description = "Core Code API - Infrastructure management and tools API"
|
description = "Core Code API - Infrastructure management and tools API"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|||||||
+4
-4
@@ -296,7 +296,7 @@ class AuthService:
|
|||||||
if data.get("component") == "ak-stage-identification":
|
if data.get("component") == "ak-stage-identification":
|
||||||
resp = await client.post(
|
resp = await client.post(
|
||||||
flow_url,
|
flow_url,
|
||||||
json={"uid_field": settings.authentik_admin_user},
|
json={"uid_field": settings.authentik_username},
|
||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
@@ -312,7 +312,7 @@ class AuthService:
|
|||||||
if data.get("component") == "ak-stage-password":
|
if data.get("component") == "ak-stage-password":
|
||||||
resp = await client.post(
|
resp = await client.post(
|
||||||
flow_url,
|
flow_url,
|
||||||
json={"password": settings.authentik_admin_password},
|
json={"password": settings.authentik_password},
|
||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
@@ -342,8 +342,8 @@ class AuthService:
|
|||||||
Returns:
|
Returns:
|
||||||
BulkSyncResultSchema with counts of created/updated/failed users
|
BulkSyncResultSchema with counts of created/updated/failed users
|
||||||
"""
|
"""
|
||||||
if not settings.authentik_admin_user or not settings.authentik_admin_password:
|
if not settings.authentik_username or not settings.authentik_password:
|
||||||
raise ValueError("AUTHENTIK_ADMIN_USER and AUTHENTIK_ADMIN_PASSWORD must be configured")
|
raise ValueError("AUTHENTIK_USERNAME and AUTHENTIK_PASSWORD must be configured")
|
||||||
|
|
||||||
created = 0
|
created = 0
|
||||||
updated = 0
|
updated = 0
|
||||||
|
|||||||
+2
-2
@@ -122,8 +122,8 @@ class Settings(BaseSettings):
|
|||||||
|
|
||||||
# Authentik API (for token validation and user management)
|
# Authentik API (for token validation and user management)
|
||||||
authentik_url: str = "http://192.168.86.149:9000" # Authentik base URL
|
authentik_url: str = "http://192.168.86.149:9000" # Authentik base URL
|
||||||
authentik_admin_user: str = "" # Admin username for API access
|
authentik_username: str = "" # Admin username for API access (AUTHENTIK_USERNAME env var)
|
||||||
authentik_admin_password: str = "" # Admin password for API access
|
authentik_password: str = "" # Admin password for API access (AUTHENTIK_PASSWORD env var)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def model_aliases(self) -> dict:
|
def model_aliases(self) -> dict:
|
||||||
|
|||||||
Reference in New Issue
Block a user