-
Notifications
You must be signed in to change notification settings - Fork 0
dont allow secret key for IAW flow #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Caution Review failedThe pull request is closed. WalkthroughThe changes update error handling and authentication extraction logic. The Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant HTTP Extractor
participant SigningCredential
Client->>HTTP Extractor: Send request with headers
HTTP Extractor->>HTTP Extractor: Check for x-wallet-access-token
alt Token present
HTTP Extractor->>HTTP Extractor: Extract x-thirdweb-client-id and x-thirdweb-service-key
alt Headers missing
HTTP Extractor->>Client: Return validation error
else All headers present
HTTP Extractor->>SigningCredential: Construct Iaw(ClientIdServiceKey)
HTTP Extractor->>Client: Return SigningCredential
end
else Token not present
HTTP Extractor->>SigningCredential: Fallback to vault credentials
HTTP Extractor->>Client: Return SigningCredential
end
sequenceDiagram
participant IAWClient
participant API
participant ErrorHandler
IAWClient->>API: Make HTTP request
API-->>IAWClient: Respond with JSON
alt Error in response
IAWClient->>ErrorHandler: Return IAWError::ApiError { message }
else Success
IAWClient->>IAWClient: Process response
end
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
No changes to user-facing features or functionality.