From 892015fa59d7e41545d7909eaef590eb956469e7 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Thu, 1 Jan 2026 20:52:14 +0100 Subject: [PATCH] fix: use Authentik domain URL for cookie domain compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- src/config.py | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79816fc..0a969f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.2] - 2026-01-01 + +### Fixed + +- Use Authentik domain URL (auth.schweitz.net) instead of IP to fix cookie domain matching + ## [1.4.1] - 2026-01-01 ### Fixed diff --git a/pyproject.toml b/pyproject.toml index 36e8570..9e9904f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "core-api" -version = "1.4.1" +version = "1.4.2" description = "Core Code API - Infrastructure management and tools API" readme = "README.md" requires-python = ">=3.12" diff --git a/src/config.py b/src/config.py index 079ab11..de48a51 100644 --- a/src/config.py +++ b/src/config.py @@ -121,7 +121,8 @@ class Settings(BaseSettings): oidc_audience: str = "core-api" # Authentik API (for token validation and user management) - authentik_url: str = "http://192.168.86.149:9000" # Authentik base URL + # Must use domain name (not IP) when AUTHENTIK_COOKIE_DOMAIN is set + authentik_url: str = "https://auth.schweitz.net" # Authentik base URL authentik_username: str = "" # Admin username for API access (AUTHENTIK_USERNAME env var) authentik_password: str = "" # Admin password for API access (AUTHENTIK_PASSWORD env var)