GeezerVison is showing github.com — refactor(identity): replay provider-neutral magic-link sessions (#770) by Storypapst · Pull Request #831 · OpenResilienceInitiative/ORISO-UserService
Conversation
Storypapst
commented
Jul 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
What changed
- moves Keycloak password-grant and token-exchange details out of
MagicLinkLoginService into a focused IdentitySessionExchange adapter
- returns the provider-neutral application model
api.model.identity.IdentitySession rather than a Keycloak response DTO or
an outbound-port-owned model
- preserves the public seven-field snake-case magic-link response through a
web-owned DTO
- restores the one-time token on empty or exceptional identity exchange
failures
- adds executable boundary contracts preventing the service and both web entry
points from importing Keycloak transports, and preventing the public web
response from depending on outbound-port packages
Current-baseline reconciliation
This PR is refreshed on current pre-dev
947cd1baa142cc4ac9360a96f4694be5e932c657. It retains the already merged
Matrix-only runtime removal, outbound telemetry, seeded replica load, bounded
Agency fallback, and replica-safety contracts.
The refresh had two semantic conflicts:
MagicLinkLoginServiceTest now retains the authenticated SMTP-source
regression from pre-dev together with the provider-neutral identity-session
tests.
documentation/USER_SERVICE_STABILITY.md now describes Rocket.Chat as
removed from production source rather than merely disabled, while preserving
the new identity boundary and the merged load/telemetry evidence.
No Rocket.Chat or Jitsi adapter, dependency, configuration, or fallback is
introduced. The target remains Matrix chat, the ORISO frontend, the
ORISO-controlled Element Call/MatrixRTC fork, and LiveKit only.
Verification on exact head
- head:
f3d4a39071d883221d1f4b9779e000711c1193b8
- merged base:
947cd1baa142cc4ac9360a96f4694be5e932c657
- focused Magic-Link/Keycloak/web tests: green
- Python module-boundary contracts: 8 passed
- full clean package/unit suite: 3,417 tests, 0 failures/errors, 4 existing
email-supplier quarantine skips removed separately by test(stability): replay zero-quarantine guard on current pre-dev (#768) #829
- full integration suite: 846 tests, 0 failures/errors, 5 environment-gated
skips
- full Python CI contracts on this branch: 37 passed
- Spotless and
git diff --check: passed
- GitHub CI: all 12 checks terminal green, including both complete integration
jobs, both MariaDB contracts, Redis, OpenAPI, branch and PR builds, Docker
validation, API diff, and Required PreDev CI
GitHub's CodeRabbit status is the configured skip for this base branch, not a
completed human review. The corrected dependency direction and current merge
resolution were reviewed manually and are covered by executable boundaries.
Delivery state
This is a modular-monolith boundary improvement, not a microservice extraction.
PR #831 is open, not merged, not deployed, and not runtime proof. Follow-up
#833 remains ordered after this deeper session boundary.
Supersedes #771.
Closes #770.
Refs #750, #335, #734.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Jul 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0fdc7e18-db8e-454a-a0ed-e249d0c02605
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
✨ Finishing Touches
✨ Simplify code
- Create PR with simplified code
- Commit simplified code in branch
replay/magic-link-identity-session-770
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 27, 2026
|
Bugbot is not enabled for your account, so this pull request was not reviewed.
Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Published for review at exact head be71efb9414924841c80987007b13c22d4b16a99.
Independent review found that the first replay let the public web DTO depend on an outbound-port model. The corrected head moves the provider-neutral IdentitySession into api.model.identity and adds an executable guard against that dependency direction.
Evidence on the corrected head:
- 194 focused Java tests passed with zero failures, errors or skips
- 7 module-boundary contracts passed
- Spotless and diff checks passed
- all 12 GitHub checks are terminal green
- the PR is cleanly mergeable against current
pre-dev
Ordered follow-up #833 was also proven in a disposable exact-head combination: after retaining both sets of additive test imports/contracts, 345 focused Java tests and 8 module-boundary tests passed. #833 stays draft until this PR lands and is then replayed onto the resulting pre-dev.
This is source/CI readiness only. It is not merged, deployed or PreDev runtime proof.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 28, 2026
This was referenced Jul 28, 2026
This was referenced Jul 28, 2026
…identity-session-770
# Conflicts:
# documentation/USER_SERVICE_STABILITY.md
# src/test/java/de/caritas/cob/userservice/api/service/auth/MagicLinkLoginServiceTest.java
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
shazia-k
shazia-k approved these changes
Hassan9215
Awaiting requested review from Hassan9215
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|