Skip to content

feat(fe): handle ICRC-3 attribute requests in default authorize flow#3791

Open
sea-snake wants to merge 2 commits intosea-snake/icrc3-text-typesfrom
sea-snake/icrc3-default-flow
Open

feat(fe): handle ICRC-3 attribute requests in default authorize flow#3791
sea-snake wants to merge 2 commits intosea-snake/icrc3-text-typesfrom
sea-snake/icrc3-default-flow

Conversation

@sea-snake
Copy link
Copy Markdown
Contributor

The ICRC-3 attribute handler previously only existed in the OpenID resume flow. Dapps using the default (non-OpenID) authorize flow that request ii-icrc3-attributes would get no response.

This adds an ICRC-3 attributes listener to the default authorize flow's AuthorizationChannel. Since the user didn't authenticate via OpenID, there are no attribute values to certify — the handler responds with only the implicit entries (nonce, origin, timestamp) by calling prepare_icrc3_attributes with an empty attributes list.

Changes

  • Added handleIcrc3AttributeRequests to AuthorizationChannel.svelte that listens for ii-icrc3-attributes, waits for authorization + authentication, then certifies an empty attribute set.

← Previous: #3770
Next: #3777

Listen for ii-icrc3-attributes requests in the normal (non-OpenID)
authorize flow. Responds with empty attributes (only implicit entries
like nonce, origin, timestamp) since the user didn't authenticate
via OpenID and has no attribute values to certify.
@sea-snake sea-snake force-pushed the sea-snake/icrc3-default-flow branch from 1297a30 to 8d7cdb2 Compare April 20, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants