Skip to content

Commit

Permalink
Merge pull request #1024 from lsst-sqre/tickets/DM-44269
Browse files Browse the repository at this point in the history
DM-44289: Remove /auth/analyze routes
  • Loading branch information
rra committed May 9, 2024
2 parents 23c5e16 + d08ee01 commit a8ada27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 300 deletions.
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.

0 comments on commit a8ada27

Please sign in to comment.