-
Notifications
You must be signed in to change notification settings - Fork 474
feat(shared,ui): add AgentID OAuth provider #9735
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
11ddc84
feat(shared,ui): add AgentID OAuth provider
wyattjoh 3ecf487
test(ui): cover the provider mask-image list exhaustively
wyattjoh c8f6c4c
test(ui): pin the mask-image provider list
wyattjoh 4887afe
test(ui): move the mask-image rationale into the test name
wyattjoh f177ad8
fix(shared,ui): address AgentID provider review feedback
wyattjoh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| '@clerk/shared': minor | ||
| '@clerk/ui': patch | ||
| --- | ||
|
|
||
| Add `agentid` to `OAuthProvider` and `OAUTH_PROVIDERS` to support the "Continue with AgentID" OAuth flow. Instances with the connection enabled now render a "Continue with AgentID" button, with the AgentID mark tinted to match the theme's foreground color so it stays legible in dark mode. |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,6 +221,18 @@ export const OAUTH_PROVIDERS: OAuthProviderData[] = [ | |
| name: 'Hugging Face', | ||
| docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface', | ||
| }, | ||
| { | ||
| provider: 'vercel', | ||
| strategy: 'oauth_vercel', | ||
| name: 'Vercel', | ||
| docsUrl: 'https://clerk.com/docs/authentication/social-connections/vercel', | ||
| }, | ||
|
Comment on lines
+224
to
+229
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. out of curiosity, is this needed for the agentID stuff? Or is it piggybacking here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. piggybacking! |
||
| { | ||
| provider: 'agentid', | ||
| strategy: 'oauth_agentid', | ||
| name: 'AgentID', | ||
| docsUrl: 'https://clerk.com/docs/guides/configure/auth-strategies/social-connections/agentid', | ||
| }, | ||
| ]; | ||
|
|
||
| /** | ||
|
|
||
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Replace the broken AgentID documentation URL in both provider registries. The configured URL returns HTTP 404, so consumers that expose
docsUrldirect users to a nonexistent page. ()packages/shared/src/oauth.ts#L181-L181: use the published AgentID documentation URL.packages/shared/src/types/runtime-values.ts#L234-L234: mirror the corrected URL.As per coding guidelines, “Update documentation for API changes.”
📍 Affects 2 files
packages/shared/src/oauth.ts#L181-L181(this comment)packages/shared/src/types/runtime-values.ts#L234-L234🤖 Prompt for AI Agents
Source: Coding guidelines