Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: configurable audience handlers #257

Merged
merged 2 commits into from
Mar 13, 2023
Merged

feat: configurable audience handlers #257

merged 2 commits into from
Mar 13, 2023

Conversation

Gozala
Copy link
Collaborator

@Gozala Gozala commented Mar 12, 2023

Fixes #256

@Gozala Gozala requested a review from gobengo March 12, 2023 02:03
@@ -242,3 +254,76 @@ test('test access/claim provider', async () => {
const result = await claim.execute(client)
assert.deepEqual(result, [])
})

test('handle did:mailto audiences', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw it would be nice to have a Schema for did:mailto that matches with did:mailto:${string}:${string} because DID.match({ protocol: 'mailto' }) does not satisfy did:mailto:${string}:${string}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but that is probably out of scope for ucanto

@Gozala Gozala merged commit f8d001c into main Mar 13, 2023
@github-actions github-actions bot mentioned this pull request Mar 13, 2023
This was referenced Apr 11, 2023
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.

alllow server to handle requests for arbitrary audience
2 participants