Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-44289: Remove /auth/analyze routes #1024

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.d/20240509_084145_rra_DM_44269.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Backwards-incompatible changes

- Remove the `/auth/analyze` route. This was an old way for a user to see information about their token that has been deprecated for many releases. The output used the old JWT token claim format and was missing a great deal of useful information. `/auth/api/v1/user-info` and `/auth/api/v1/token-info` should be used instead.
154 changes: 0 additions & 154 deletions src/gafaelfawr/handlers/analyze.py

This file was deleted.

3 changes: 1 addition & 2 deletions src/gafaelfawr/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from .dependencies.config import config_dependency
from .dependencies.context import context_dependency
from .exceptions import DatabaseSchemaError
from .handlers import analyze, api, auth, cadc, internal, login, logout, oidc
from .handlers import api, auth, cadc, internal, login, logout, oidc
from .middleware.state import StateMiddleware
from .models.state import State

Expand Down Expand Up @@ -129,7 +129,6 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]:
)

# Add all of the routes.
app.include_router(analyze.router)
app.include_router(
api.router,
responses={
Expand Down
144 changes: 0 additions & 144 deletions tests/handlers/analyze_test.py

This file was deleted.