Skip to content

MODAT-150: Remove legacy token endpoint and all code associated with it#177

Closed
steveellis wants to merge 5 commits intomasterfrom
MODAT-150-remove-legacy-token-endpoint
Closed

MODAT-150: Remove legacy token endpoint and all code associated with it#177
steveellis wants to merge 5 commits intomasterfrom
MODAT-150-remove-legacy-token-endpoint

Conversation

@steveellis
Copy link
Contributor

@steveellis steveellis commented Feb 13, 2025

https://folio-org.atlassian.net/browse/MODAT-150. It was agreed to do this in Sunflower. There also need to be similar pull requests in mod-login, mod-users-bl and mod-login-saml.

  • Removes two legacy endpoints: /token and /refreshtoken.
  • Removes all tests for legacy endpoints. These tests were named with the _Legacy suffix in the method name.
  • Removes LegacyTokenTenants class, tests, and readme
  • Removes legacy token type

Sorry for the gigantic diff with the tests. It is because I decided to fix the indents in this class. Only the tests for the two legacy endpoints (the ones with the _Legacy suffix have been removed. All other tests are unchanged. Let me know if you would prefer for me to remove the indent fixes to make it easier to review.

Tested locally by starting up the core modules, logging in and hitting some core endpoints (mod-users, mod-perms, mod-config) with a token.

@steveellis steveellis changed the title MODAT-150: Removing legacy routes and tests; fixing indents in tests MODAT-150: Remove legacy token endpoint and all code associated with it Feb 13, 2025
@steveellis steveellis marked this pull request as draft February 13, 2025 21:34
@steveellis steveellis marked this pull request as ready for review February 14, 2025 19:53
},
{
"id": "authtoken2",
"version": "1.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@julianladisch do we want to bump this as well to 2.0?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because there is not breaking change in the "authtoken2" APIs.

@sonarqubecloud
Copy link

1 similar comment
@sonarqubecloud
Copy link

@julianladisch
Copy link
Contributor

No longer needed, mod-authtoken will be archived when the Sunflower support period ends 2026-06-30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants