Repository navigation
feat(client): add client.integrations.list() for the integrations registry (#56) - #84
Merged
Merged
Conversation
…fields, Credentials.User.new - Clients.Client.access.check(vault, permission): GET the /access/check leaf route with vault/permission query params - Clients.new(): forward allowed_scopes, upstream_scopes, token_bridge (update() has supported them since PR #65) - Credentials.Provider.User.new(scopes, expires_in): implement the stale NotImplementedError stub — POST /credentials/<provider>/ <user_id> sends {scopes, expires_in}; the client_id comes from the request's auth context, not the body Fixes #76
…istry (#56) Read-only resource client for the public auth-service catalog at /integrations/v1/ (campus#751), returning campus.model.Integration entries (added to campus weekly in campus#784). The registry schema supersedes the issue sketch: provider, slug, base_provider, title, description, scopes, connectable, authorize_path (no api_doc/ capabilities). Shares the auth client so it works in device mode. Closes #56
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
client.integrations.list()(#56): a read-only resource client for the integrations registry served by the auth service atGET /integrations/v1/(campus#751).campus_python/integrations/v1/package withIntegrationsRoot(mirrorsapi/v1,auth/v1layout), mounted lazily asclient.integrationsonCampus.CampusRequest, so it resolvesCAMPUS_AUTH_URL/ENV the same asclient.authand works in device mode (the endpoint is public).campus.model.Integration, added to campus weekly in campus#784 (from_resource/to_resource, catalog metadata only — no secrets).campus-suitebumped to weekly518a9fainpoetry.lock.Schema note
The landed registry schema supersedes the sketch in #56: entries carry
provider,slug,base_provider,title,description,scopes,connectable,authorize_path— notapi_doc/capabilities(those did not survive the #733 lane; see campus#769 for the recorded schema decisions).Read-only for now; if enable/disable flags are added server-side later, they surface behind this same resource.
Tests
8 new unit tests (path/endpoint, model deserialization, envelope tolerance, Campus mounting/sharing/caching); full suite: 158 passed.