feat(auth): add GitLab as a tool authorization provider [TOO-1133]#872
Draft
EricGustin wants to merge 2 commits into
Draft
feat(auth): add GitLab as a tool authorization provider [TOO-1133]#872EricGustin wants to merge 2 commits into
EricGustin wants to merge 2 commits into
Conversation
Adds the GitLab OAuth2 provider class (provider_id "gitlab") so toolkits can require GitLab authorization, mirroring the existing GitHub provider, and re-exports it from arcade_tdk.auth and arcade_mcp_server.auth. Sister change to the Engine well-known provider PR (ArcadeAI/monorepo#1674, TOO-1133). Per the provider rollout order, this should merge/deploy after the Engine + Porter changes are live. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
Instantiating each provider class exercises its __init__/super().__init__, which codecov patch flags as uncovered when a new provider lands. Walking the provider classes dynamically keeps every current and future provider covered with no per-provider test edit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
dfd85fd to
a41ccb6
Compare
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.
Resolves https://linear.app/arcadedev/issue/TOO-1134/gitlab-well-known-provider-in-arcade-mcp. Sister change to the Engine well-known PR: ArcadeAI/monorepo#1674.
What
Adds the
GitLabOAuth2 provider class (provider_id = "gitlab") so toolkits can require GitLab authorization, mirroring the existingGitHubprovider. Re-exported fromarcade_tdk.authandarcade_mcp_server.auth.Files
libs/arcade-core/arcade_core/auth.py—class GitLab(OAuth2)libs/arcade-tdk/arcade_tdk/auth/__init__.py— import +__all__libs/arcade-mcp-server/arcade_mcp_server/auth/__init__.py— import +__all__Verification
arcade_core.auth.GitLab().provider_id == "gitlab"arcade_tdk.auth.GitLabre-exports the same classruff checkclean on all three filesDeploy ordering
Draft on purpose. Per the well-known provider rollout, the framework (arcade-mcp) change deploys after the Engine config + Porter credentials are live, so this should merge after monorepo#1674 + the Porter env-group update.
🤖 Generated with Claude Code