docs: Web Auth documentation#1235
Conversation
d170fdd to
fadc357
Compare
Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
| participant W as Cadence Web | ||
| participant C as Cadence server | ||
|
|
||
| B->>W: Set cadence-authorization cookie |
There was a problem hiding this comment.
💡 Quality: Sequence diagram step 1 description is inaccurate
Step 1 says B->>W: Set cadence-authorization cookie — but the browser doesn't "set" a cookie on the server. The previous wording ("Request with cadence-authorization cookie") was more accurate: the browser sends a request that includes the cookie. The removed W->>W: resolveAuthContext line was also helpful for showing what the server does on receipt.
Also, the note on line 95 has a typo: "dependant" → "dependent".
Suggested fix:
B->>W: Request with cadence-authorization cookie
...
Note: 4-5 are not dependent on 2-3 ...
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
Code Review 👍 Approved with suggestions 2 resolved / 3 findingsWeb Auth documentation adds clear sequence diagrams and configuration guidance for authentication flows, with two issues resolved: removed private key from repository and cleaned up jwt.js debug code. Consider correcting step 1 description in the sequence diagram to accurately reflect browser cookie behavior. 💡 Quality: Sequence diagram step 1 description is inaccurate📄 docs/auth.md:87 📄 docs/auth.md:95 Step 1 says Also, the note on line 95 has a typo: "dependant" → "dependent". Suggested fix✅ 2 resolved✅ Security: Private key committed to repository
✅ Quality: jwt.js has commented-out debug code and no trailing newline
🤖 Prompt for agentsOptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
Summary
Create web auth document that includes: