Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d13be6052 |
@@ -5,6 +5,13 @@ 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.4] - 2026-01-01
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Use `uuid` field instead of `pk` for Authentik user sync (pk is integer, uuid is proper UUID)
|
||||||
|
- Skip internal_service_account type users during bulk sync
|
||||||
|
|
||||||
## [1.4.3] - 2026-01-01
|
## [1.4.3] - 2026-01-01
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "core-api"
|
name = "core-api"
|
||||||
version = "1.4.3"
|
version = "1.4.4"
|
||||||
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"
|
||||||
|
|||||||
+2
-2
@@ -396,13 +396,13 @@ class AuthService:
|
|||||||
for auth_user in authentik_users:
|
for auth_user in authentik_users:
|
||||||
try:
|
try:
|
||||||
# Skip service accounts and inactive users
|
# Skip service accounts and inactive users
|
||||||
if auth_user.get("type") == "service_account":
|
if auth_user.get("type") in ("service_account", "internal_service_account"):
|
||||||
continue
|
continue
|
||||||
if not auth_user.get("is_active", True):
|
if not auth_user.get("is_active", True):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Extract user data from Authentik
|
# Extract user data from Authentik
|
||||||
authentik_id = uuid.UUID(auth_user["pk"])
|
authentik_id = uuid.UUID(auth_user["uuid"])
|
||||||
email = auth_user.get("email") or f"{auth_user['username']}@local"
|
email = auth_user.get("email") or f"{auth_user['username']}@local"
|
||||||
name = auth_user.get("name") or auth_user.get("username", "Unknown")
|
name = auth_user.get("name") or auth_user.get("username", "Unknown")
|
||||||
avatar_url = auth_user.get("avatar")
|
avatar_url = auth_user.get("avatar")
|
||||||
|
|||||||
Reference in New Issue
Block a user