Docs: Diagram of AuthBridge plugin decision sequence#629
Conversation
Signed-off-by: Ed Snible <snible@us.ibm.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds a new documentation file (docs/README.md) describing AuthBridge's plugin-based architecture, including its configuration model, ordered inbound/outbound plugin pipelines, the pipeline.Context data structure, and two example multi-message authorization flows using Shared and Session state. ChangesAuthBridge Documentation
Sequence Diagram(s)sequenceDiagram
participant Client
participant AuthBridge
participant JWTValidation
participant Shared
participant TokenExchange
Client->>AuthBridge: Inbound HTTP request
AuthBridge->>JWTValidation: OnRequest(pctx)
JWTValidation->>Shared: write token handle (TTL)
AuthBridge->>Client: forward to backend
Client->>AuthBridge: Outbound request
AuthBridge->>TokenExchange: OnRequest(pctx)
TokenExchange->>Shared: read token handle
alt token missing or expired
TokenExchange-->>Client: 401
else token valid
TokenExchange->>Client: forward authorized request
end
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
I had difficulty understanding how AuthBridge is configured to make decisions about network traffic. This PR documents my understanding how the conceptual model of AuthBridge. My intention is that a diagram at this level of abstraction will be useful to both developers in this repo and developers writing AuthBridge configuration for specialized authorization tasks.
Summary by CodeRabbit