Skip to content

Commit a2a1ce2

Browse files
committed
Move internal token endpoint under /api prefix
1 parent 34ddbee commit a2a1ce2

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

auth-libs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Shared authentication libraries for all HOTOSM projects.
1313
```python
1414
# From PyPI
1515
dependencies = [
16-
"hotosm-auth[fastapi]==0.2.11",
16+
"hotosm-auth[fastapi]==0.2.12",
1717
]
1818

1919
# Or from Git
2020
dependencies = [
21-
"hotosm-auth[litestar] @ git+https://github.com/hotosm/login.git@v0.2.11#subdirectory=auth-libs/python",
21+
"hotosm-auth[litestar] @ git+https://github.com/hotosm/login.git@v0.2.12#subdirectory=auth-libs/python",
2222
]
2323
```
2424

@@ -66,10 +66,10 @@ Projects can use PyPI or reference directly from GitHub:
6666

6767
```python
6868
# PyPI (recommended)
69-
"hotosm-auth[fastapi]==0.2.11",
69+
"hotosm-auth[fastapi]==0.2.12",
7070

7171
# Git reference
72-
"hotosm-auth[litestar] @ git+https://github.com/hotosm/login.git@v0.2.11#subdirectory=auth-libs/python",
72+
"hotosm-auth[litestar] @ git+https://github.com/hotosm/login.git@v0.2.12#subdirectory=auth-libs/python",
7373
```
7474

7575
- No wheels to distribute or commit

auth-libs/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "hotosm-auth"
7-
version = "0.2.11"
7+
version = "0.2.12"
88
description = "HOTOSM SSO authentication library for Hanko + OSM OAuth"
99
readme = "README.md"
1010
requires-python = ">=3.10"

auth-libs/python/src/hotosm_auth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Core HOTOSM authentication package shared by framework integrations."""
22

3-
__version__ = "0.2.11"
3+
__version__ = "0.2.12"
44

55
# Core models and configuration
66
from hotosm_auth.config import AuthConfig

auth-libs/python/src/hotosm_auth/remote_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def remote_pat_resolver(
4848
),
4949
)
5050
"""
51-
url = f"{login_url.rstrip('/')}/internal/resolve-token"
51+
url = f"{login_url.rstrip('/')}/api/internal/resolve-token"
5252
_epoch = datetime(2000, 1, 1, tzinfo=timezone.utc)
5353

5454
async def resolver(token_hash: str, app_name: str) -> Optional[HankoUser]:

backend/app/api/routes/api_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
)
2424

2525
router = APIRouter(prefix="/api/profile/me/api-tokens", tags=["API Tokens"])
26-
internal_router = APIRouter(prefix="/internal", tags=["Internal"])
26+
internal_router = APIRouter(prefix="/api/internal", tags=["Internal"])
2727

2828
CurrentUser = Annotated[HankoUser, Depends(get_current_user)]
2929
DB = Annotated[AsyncSession, Depends(get_db)]

0 commit comments

Comments
 (0)