Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a16688cc8 |
@@ -5,6 +5,14 @@ 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.10.2] - 2026-01-07
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- **Enhanced environment endpoint logging** - Added detailed user claim logging for debugging
|
||||||
|
- Logs both `preferred_username` and `sub` claims when resolving user
|
||||||
|
- Distinguishes between authenticated and unauthenticated requests
|
||||||
|
|
||||||
## [1.10.1] - 2026-01-06
|
## [1.10.1] - 2026-01-06
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "core-api"
|
name = "core-api"
|
||||||
version = "1.10.1"
|
version = "1.10.2"
|
||||||
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"
|
||||||
|
|||||||
@@ -141,9 +141,11 @@ class ToolsController(BaseController):
|
|||||||
# Determine user identifier
|
# Determine user identifier
|
||||||
user_id = "default"
|
user_id = "default"
|
||||||
if user:
|
if user:
|
||||||
|
logger.debug(f"User claims: {user}")
|
||||||
user_id = user.get("preferred_username") or user.get("sub", "default")
|
user_id = user.get("preferred_username") or user.get("sub", "default")
|
||||||
|
logger.info(f"Fetching environment data for user: {user_id} (preferred_username={user.get('preferred_username')}, sub={user.get('sub')})")
|
||||||
logger.info(f"Fetching environment data for user: {user_id}")
|
else:
|
||||||
|
logger.info(f"Fetching environment data for user: {user_id} (no auth)")
|
||||||
result = await self.environment_service.get_current(user_id)
|
result = await self.environment_service.get_current(user_id)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user