feat: add OAuth URL scheme infrastructure#14
Open
Anmol1696 wants to merge 3 commits into
Open
Conversation
Remove blocking auth requirement on first launch. Users now see a warning that no auth is configured but the container starts anyway. Auth can be configured later in the Control UI.
Add support for multiple AI providers in the auth flow: - Anthropic (OAuth + API key) - OpenAI (API key) - Google AI (API key) New UI shows provider picker on first run, with each provider having its own configuration flow. Users can skip and configure later in Control UI.
Add infrastructure for seamless OAuth callback via openclaw:// URL scheme: - Register openclaw:// URL scheme in Info.plist (via build.sh) - Add onOpenURL handler in OpenClawApp to receive callbacks - Add handleOAuthCallback method to process incoming codes - Keep manual code entry as fallback (web redirect still default) Note: Custom URL scheme requires Anthropic to accept openclaw:// as redirect URI. Currently defaults to web callback until verified.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add infrastructure for seamless OAuth callback via
openclaw://URL scheme:openclaw://URL scheme in Info.plist (via build.sh)onOpenURLhandler in OpenClawApp to receive callbackshandleOAuthCallbackmethod to process incoming codesDepends on: #13 (feat/multi-provider-auth)
Note
Custom URL scheme requires Anthropic to accept
openclaw://oauth/callbackas redirect URI. Currently defaults to web callback until verified. To enable, updateAnthropicOAuth.redirectURIto usecustomRedirectURI.Test plan
cd app/macos && bash build.sh