chore(dq): consume tokenclaims from dauth instead of token-exchange-api#18
Merged
Conversation
token-exchange-api has been replaced by dauth; dq now imports github.com/DIMO-Network/dauth/pkg/tokenclaims (v0.0.1), which carries the identical claim shape and permission constants, so token parsing behavior is unchanged. gqlgen Privilege enum bindings updated and code regenerated. cloudevent moves to v1.1.0. dauth required v1.0.4, a ghost tag deleted from GitHub but immortal in the module proxy, whose content predates the v0.2.x line dq depends on (StoredEvent, VoidsID, DataIndexKey, raweventid); v1.1.0 was tagged from the current line to restore semver ordering. The gqlgen regen also flushed the permissionsFromCtx helper out of base.resolvers.go into privilege_filter.go, where helpers survive regen. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DNqJMcyn2p3oKosj3KFdQR
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.
What
Swaps dq's
tokenclaimsdependency from the retired token-exchange-api module to its successor,github.com/DIMO-Network/dauth/pkg/tokenclaims(v0.0.1).Privilegeenum bindings ingqlgen.ymlrepointed; code regenerated. dauth's claim types and permission strings are identical, so token parsing behavior is unchanged.go mod tidydrops token-exchange-api entirely.cloudeventmoves v0.2.13 → v1.1.0. dauth required v1.0.4 — a ghost tag deleted from GitHub but cached forever by the module proxy, whose content predates the v0.2.x line dq depends on (StoredEvent,VoidsID,DataIndexKey,raweventid). v1.1.0 was tagged from the current line to restore semver ordering, so noreplacepin is needed.permissionsFromCtxhelper out ofbase.resolvers.go; it now lives inprivilege_filter.go, where helpers survive regeneration.scalar Address.Why
token-exchange-api has been replaced by dauth. This makes dq consume claims from the successor before any grant-format work (ODRL SACD docs) starts in dauth, so the claim types version together with the service that mints them.
Testing
go build ./...,go test ./..., andgolangci-lint runall pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01DNqJMcyn2p3oKosj3KFdQR