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

Add a caveat extractor system? #8

Open
waxzce opened this issue Sep 3, 2018 · 1 comment
Open

Add a caveat extractor system? #8

waxzce opened this issue Sep 3, 2018 · 1 comment

Comments

@waxzce
Copy link

waxzce commented Sep 3, 2018

In many projects, there are needs of data extraction from the caveat, and at the moment, extraction has to be made manually iteration on top of macaroon after the validation. This issue is made to discuss if we need to add a value extractor to caveat management in jmacaroons.

I quickly did something on a project, it a crypto token translation system, from macaroons to warp10 tokens, it's far from perfect, but it can be a good starting point https://github.com/CleverCloud/warp10-macaroons-plugin

Do you think I have to explore the possibility and make a pull request?

@jaxley
Copy link
Contributor

jaxley commented Jul 23, 2019

I was thinking that this is something that will be very helpful. The reference implementation alludes to various APIs for recovering first and third party caveats. Right now, third party caveats get split into three different caveat packets that you'd have to linearly process caveats or backtrack just to get the caveat ID for a given third party caveat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants