Skip to content

refactor(oidc): follow the module layout (moves only) - #841

Merged
antosubash merged 1 commit into
mainfrom
refactor/layout-oidc
Nov 5, 2026
Merged

antosubash merged 1 commit into
mainfrom
refactor/layout-oidc

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

Moves-only restructure of the oidc module to docs/module-layout.md, same pattern as #838 (keycloak).

  • oidc/core/: constants, settings, presets, state, runtime
  • oidc/identity/ (DOMAIN_AREAS): provider, client, discovery, renewal, directory, persistence, tokens, jwks
  • oidc/web/endpoints/: api, views
  • Tests mirror the areas.
  • oidc.settings, oidc.provider, oidc.jwks stay as deprecated sys.modules aliases (remove_in 0.0.46).
  • Tests outside the module updated: modules/auth/tests (including the dynamic import_module(f"{provider}.identity.tokens") in conftest), modules/keycloak/tests, modules/users/tests/test_users_login_deep_link.py.
  • task_config.py (imported by name in background_tasks/task_routing.py) added to the allowed package-root set and the layout doc.

No logic changes: renamed files differ only in import lines.

Verification

  • make lint, make ci-docs-build, make doctor (0 errors, 0 warnings): green
  • make test-py: 7875 passed, 45 skipped; make test-js: green
  • Alias identity checks and -W error::DeprecationWarning import of the new paths: ok
  • Review (moves-only focus): clean; no browser smoke (oidc needs a live IdP)

https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq

constants, settings, presets, state and runtime move to oidc/core/; the
provider, client, discovery, renewal, directory, cache persistence,
token encryption and JWKS to oidc/identity/; endpoints to oidc/web/.
Tests mirror the areas. oidc.{settings,provider,jwks} stay as deprecated
aliases until 0.0.46. The layout doc and root test also list
task_config.py, which background_tasks imports by name.

Claude-Session: https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-05T17:49:01.093327Z 139a0c4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 139a0c4
Status: ✅  Deploy successful!
Preview URL: https://e339d9f4.simple-module-python.pages.dev
Branch Preview URL: https://refactor-layout-oidc.simple-module-python.pages.dev

View logs

@antosubash
antosubash merged commit 3bae0c6 into main Nov 5, 2026
17 checks passed
@antosubash
antosubash deleted the refactor/layout-oidc branch November 5, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant