Revert "Added GitHub OAuth identity verification flow"#551
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughRemoves GitHub OAuth credential environment variables and the entire OAuth flow module, replacing them with a new GitHub proof parser that validates gist-based proofs using Octokit and axios. Introduces corresponding URL format mappings and removes OAuth code exchange handling from network calls. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant verifyWeb2Proof
participant GithubProofParser
participant Octokit as Octokit/GitHub API
participant axios as axios
Client->>verifyWeb2Proof: Proof URL (gist or raw)
Note over verifyWeb2Proof: Determine parser type
verifyWeb2Proof->>GithubProofParser: readData(proofUrl)
alt gist.github.com URL
GithubProofParser->>GithubProofParser: parseGistDetails(extract username, gistId)
GithubProofParser->>Octokit: GET /gists/{gistId}
Octokit-->>GithubProofParser: gist data
rect rgb(200, 220, 240)
Note over GithubProofParser: Validate owner matches username
end
GithubProofParser->>GithubProofParser: Extract first file content
else githubusercontent.com URL
GithubProofParser->>axios: GET raw file
axios-->>GithubProofParser: raw content
end
rect rgb(240, 220, 200)
Note over GithubProofParser: Validate & parse payload (message, type, signature)
end
GithubProofParser-->>verifyWeb2Proof: { message, type, signature }
verifyWeb2Proof->>verifyWeb2Proof: Continue verification chain
verifyWeb2Proof-->>Client: Verification result
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (7)
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 |
|



Reverts #549
Summary by CodeRabbit
New Features
Refactor
Dependencies
✏️ Tip: You can customize this high-level summary in your review settings.