Skip to content

Introduce ExternalSessionService.#3732

Merged
demiankatz merged 8 commits intovufind-org:devfrom
demiankatz:external-session-service
Jun 13, 2024
Merged

Introduce ExternalSessionService.#3732
demiankatz merged 8 commits intovufind-org:devfrom
demiankatz:external-session-service

Conversation

@demiankatz
Copy link
Member

@demiankatz demiankatz commented Jun 1, 2024

This migrates most of the external session handling logic to a new database service. The expiration cleanup command can be ported after #3714 is merged, since that work requires changes pending in that other PR.

All tests are passing, but I don't have a real-world environment to test this with, so help with that would be appreciated!

@demiankatz demiankatz requested review from EreMaijala and aleksip June 1, 2024 20:00
@demiankatz demiankatz added this to the 10.0 milestone Jun 1, 2024
@demiankatz demiankatz added the architecture pull requests that involve significant refactoring / architectural changes label Jun 1, 2024
@EreMaijala
Copy link
Contributor

@demiankatz I'll see if I can add a Mink test for this using SimulatedSSO.

@demiankatz demiankatz removed the request for review from aleksip June 13, 2024 10:17
@demiankatz demiankatz requested a review from EreMaijala June 13, 2024 10:21
@demiankatz
Copy link
Member Author

Thanks for the review, @EreMaijala -- I've addressed your comments (including changing getExternalSessionById to getExternalSessionByExternalSessionId, which is long and redundant but more clear!).

Thanks also for the offer of test coverage -- more never hurts, though it does appear that we're at least using some parts of the service in ShibbolethLogoutNotificationTest.

@EreMaijala
Copy link
Contributor

@demiankatz Indeed, but I think it's still worth adding it to SimulatedSSO test so that it's the "real thing" adding the session mapping.

@demiankatz
Copy link
Member Author

I'm currently working on adding the expiration command...

@demiankatz demiankatz merged commit 850a345 into vufind-org:dev Jun 13, 2024
@demiankatz demiankatz deleted the external-session-service branch June 13, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

architecture pull requests that involve significant refactoring / architectural changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants