Restructure OIDC patron auth for reuse by future OIDC-based providers (PP-3110)#3593
Restructure OIDC patron auth for reuse by future OIDC-based providers (PP-3110)#3593tdilauro wants to merge 21 commits into
Conversation
|
Claude finished @tdilauro's task in 8m 45s —— View job Code Review
SummaryThis is a clean refactor and the mechanical moves check out: the settings aliases preserve declaration order (now guarded by DetailsMinor:
|
Greptile SummaryThis PR extracts reusable OIDC authentication contracts and utilities while correcting logout behavior.
Confidence Score: 5/5The PR appears safe to merge, and the previously reported credential-invalidation namespace issue is fully addressed. No blocking failure remains within the scope of the previous review thread.
|
| Filename | Overview |
|---|---|
| src/palace/manager/integration/patron_auth/oidc/credential.py | Credential namespaces are now consistently configurable, and invalidation correctly filters by both data source and token type. |
| src/palace/manager/integration/patron_auth/oidc/controller.py | OIDC controller paths now use the common provider interface and handle back-channel logout across library-scoped provider instances. |
| src/palace/manager/integration/patron_auth/oidc/provider.py | Provider-specific behavior is decomposed into reusable OIDC helpers without an accepted blocking regression. |
| src/palace/manager/api/authenticator.py | The base OIDC provider now explicitly defines the contract required by shared controller dispatch. |
Reviews (13): Last reviewed commit: "Cache only successful logout token valid..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3593 +/- ##
=======================================
Coverage 93.52% 93.52%
=======================================
Files 512 512
Lines 46760 46765 +5
Branches 6379 6376 -3
=======================================
+ Hits 43731 43738 +7
+ Misses 1958 1957 -1
+ Partials 1071 1070 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
Description
Motivation and Context
We are planning an patron authentication integration for Clever, which is a standard OIDC provider with some extended functionality. Given the large overlap, it would be ideal to avoid duplicating the common parts.
[Jira PP-3110]
How Has This Been Tested?
Checklist