Skip to content

(auth): implement claude auth#4386

Draft
ArtemKhvorostianyi wants to merge 1 commit into
developmentfrom
implement-claude-auth-provider
Draft

(auth): implement claude auth#4386
ArtemKhvorostianyi wants to merge 1 commit into
developmentfrom
implement-claude-auth-provider

Conversation

@ArtemKhvorostianyi

@ArtemKhvorostianyi ArtemKhvorostianyi commented May 6, 2026

Copy link
Copy Markdown
Collaborator

QAuth requieres client ID which I can't get from claude. I compared creating of auth with git hub, and it's clear how do to it with git, because creating QAuth app in git is availible in browser, but not for claude.

I've researched about it:
It’s not just a Pro/Max personal subscription toggle.

Most likely cases:

OAuth app registration is org-level / enterprise-gated / allowlisted.
It may require contacting Anthropic support/sales to enable.

It supposed to work this way:

  • creating QAuth app using cluade https://platform.claude.com/
  • adding client id and trusted url for ivy app
  • in the ivy app it should appear like "sign in with claude", on clicking it redirects to claude auth page

@artem-ivy-ai

Copy link
Copy Markdown
Collaborator

if (string.IsNullOrEmpty(id) && string.IsNullOrEmpty(email))
return FallbackUserInfoFromToken(accessTokenFallback);

id ??= email ?? "claude-oauth";
Comment on lines +144 to +147
catch (Exception ex)
{
throw new InvalidOperationException($"Claude OAuth token exchange failed: {ex.Message}", ex);
}
Comment on lines +53 to +56
catch (Exception ex)
{
error.Set(ex.Message);
}

@rorychatt rorychatt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Ivy\Ivy.csproj" />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ not \

// ReSharper disable once CheckNamespace
namespace Ivy;

public static class OAuthProviders

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks sus

OAuthProviders.Twitter => Icons.XTwitter,
OAuthProviders.Figma => Icons.Figma,
OAuthProviders.Notion => Icons.Notion,
OAuthProviders.Claude => Icons.ClaudeCode,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sus because of Code part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants