Repository navigation
feat(identity): describe existing identities - #34
Merged
Merged
Conversation
Implement the identity_description capability. DescribeIdentity returns the same Identity CompleteIdentitySetup would: Apps from the stored record (slug as handle), tokens from the stored record too, except for tokens migrated from the previous release, which are completed on the spot (GitHub is asked for the owner's login once, the result stored). Unknown ids are not_found; a token GitHub rejects is forbidden. Refs Paca-AI/paca#661 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs Paca-AI/paca#661 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DescribeIdentity now asks GitHub who a token is (one GET /user) so core, which keeps the first answer, gets the owner's login, the expiry of fine-grained tokens and a forbidden for a revoked token. Migrated tokens are completed from the same response, with no second call. Apps are still described from the stored record. Refs Paca-AI/paca#661 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs Paca-AI/paca#661 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops the temporary kayahk replace; v0.4.2 ships issue listing and identity_description. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
pikann
approved these changes
Nov 3, 2026
pikann
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Thank you for the contribution! 🚀
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
Implements
identity_description, so a connection carried over by a migration gets its name and@handlethe first time Paca lists connections. Part of Paca-AI/paca#661.Changes
DescribeIdentity: an App answers from what is stored; a token is checked with oneGET /user, which gives login, name and expiry and completes a migrated token. A rejected token reportsforbidden.identity_descriptioncapability, token expiry reported.Tests
go test ./...: 121 passed (includes a check that errors never carry the token);go vetand golangci-lint clean; TinyGo build ok. End to end with core and a mock platform, over TLS: the plugin was rebuilt with TinyGo 0.41.1 and installed unchanged. Details in Paca-AI/paca#692.Dependency and merge order
Uses plugin-sdk-go v0.4.2 (Paca-AI/plugin-sdk-go#17). Merge after Paca-AI/paca#692. With an older core nothing breaks: the name appears at first use of the token, as today.
🤖 Generated with Claude Code