Skip to content

Commit 77108e3

Browse files
authored
Merge pull request #538 from tisnik/lcore-675
LCORE-675: rename module auth to authentication to distinguish it from authorization
2 parents 27e6c87 + db27483 commit 77108e3

30 files changed

+63
-60
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
# Used for HTTP service base
2626
"fastapi>=0.115.12",
2727
"uvicorn>=0.34.3",
28-
# Used by auth/k8s integration
28+
# Used by authentication/k8s integration
2929
"kubernetes>=30.1.0",
3030
# Used to call Llama Stack APIs
3131
"llama-stack==0.2.19",
@@ -58,7 +58,7 @@ exclude = [
5858
# TODO(lucasagomes): This module was copied from road-core
5959
# service/ols/src/auth/k8s.py and currently has 58 Pyright issues. It
6060
# might need to be rewritten down the line.
61-
"src/auth/k8s.py",
61+
"src/authentication/k8s.py",
6262
]
6363
extraPaths = ["./src"]
6464

src/app/endpoints/authorized.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
from fastapi import APIRouter, Depends
77

8-
from auth.interface import AuthTuple
9-
from auth import get_auth_dependency
8+
from authentication.interface import AuthTuple
9+
from authentication import get_auth_dependency
1010
from models.responses import AuthorizedResponse, UnauthorizedResponse, ForbiddenResponse
1111

1212
logger = logging.getLogger(__name__)

src/app/endpoints/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
from fastapi import APIRouter, Request, Depends
77

8-
from auth.interface import AuthTuple
9-
from auth import get_auth_dependency
8+
from authentication.interface import AuthTuple
9+
from authentication import get_auth_dependency
1010
from authorization.middleware import authorize
1111
from configuration import configuration
1212
from models.config import Action, Configuration

src/app/endpoints/conversations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from client import AsyncLlamaStackClientHolder
1111
from configuration import configuration
1212
from app.database import get_session
13-
from auth import get_auth_dependency
13+
from authentication import get_auth_dependency
1414
from authorization.middleware import authorize
1515
from models.config import Action
1616
from models.database.conversations import UserConversation

src/app/endpoints/feedback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from datetime import datetime, UTC
99
from fastapi import APIRouter, HTTPException, Depends, Request, status
1010

11-
from auth import get_auth_dependency
12-
from auth.interface import AuthTuple
11+
from authentication import get_auth_dependency
12+
from authentication.interface import AuthTuple
1313
from authorization.middleware import authorize
1414
from configuration import configuration
1515
from models.config import Action

src/app/endpoints/health.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
from fastapi import APIRouter, status, Response, Depends
1414
from client import AsyncLlamaStackClientHolder
15-
from auth.interface import AuthTuple
16-
from auth import get_auth_dependency
15+
from authentication.interface import AuthTuple
16+
from authentication import get_auth_dependency
1717
from authorization.middleware import authorize
1818
from models.config import Action
1919
from models.responses import (

src/app/endpoints/info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from fastapi import Depends
88
from llama_stack_client import APIConnectionError
99

10-
from auth.interface import AuthTuple
11-
from auth import get_auth_dependency
10+
from authentication.interface import AuthTuple
11+
from authentication import get_auth_dependency
1212
from authorization.middleware import authorize
1313
from configuration import configuration
1414
from client import AsyncLlamaStackClientHolder

src/app/endpoints/metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
CONTENT_TYPE_LATEST,
99
)
1010

11-
from auth.interface import AuthTuple
12-
from auth import get_auth_dependency
11+
from authentication.interface import AuthTuple
12+
from authentication import get_auth_dependency
1313
from authorization.middleware import authorize
1414
from models.config import Action
1515
from metrics.utils import setup_model_metrics

src/app/endpoints/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from fastapi.params import Depends
88
from llama_stack_client import APIConnectionError
99

10-
from auth import get_auth_dependency
11-
from auth.interface import AuthTuple
10+
from authentication import get_auth_dependency
11+
from authentication.interface import AuthTuple
1212
from client import AsyncLlamaStackClientHolder
1313
from configuration import configuration
1414
from authorization.middleware import authorize

src/app/endpoints/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
from fastapi import APIRouter, HTTPException, Request, status, Depends
2020

21-
from auth import get_auth_dependency
22-
from auth.interface import AuthTuple
21+
from authentication import get_auth_dependency
22+
from authentication.interface import AuthTuple
2323
from client import AsyncLlamaStackClientHolder
2424
from configuration import configuration
2525
from app.database import get_session

0 commit comments

Comments
 (0)