Comments (6)
Hi @vincentkelleher Thanks for the nice words. Actually the OID4VC libs need an awful lot of work on the doc side, but given everything is changing below our feet, we only expect to do that over the next few months. Good to hear you can find your bearing though.
Yeah you bring up some valid points. The primary reason is to protect the developer a bit from making mistakes by implementing an identifier that is not officially recognized, whilst also providing strong type support. At the same time I agree that we should not really be a barrier for new algorithms being implemented, since we do not make many assumptions about signing to begin with. Probably we should just extend the mechanism to also accept strings next to the enum. Or better yet move to a union type of string literal values as well as the string type. Then we have the best of both worlds. An IDE doing autocompletion/suggestions, but also allows having new Algos.
BTW happy to have short introduction call to see if and how we can help to begin with, given we also are working in certain Gaia-X related projects
from oid4vci.
Hi @nklomp,
Thanks for your answer 👍
If you want I can produce the merge request with the changes, the only thing I'm not confortable with is that I didn't find any tests covering the parts I mentioned like the statement that throws the algorithm error. I don't know what the guidelines are in this project about testing.
Furthermore, I like to base myself on the Jwt.io Libraries page to list all the algorithms to be supported. It lists all the main algorithms on the market to date.
I would be delighted to have an introduction call with you 👍 You can contact me at [email protected] to set up that call.
from oid4vci.
Sorry for the late reply.
If you would be happy to provide the PR that would be most welcome. Regarding the test coverage; we need to up that for this library indeed. We will be doing some refactoring and documentation work soon, now the specs are stabilizing a bit more; that is also the moment in which we will up coverage significantly. So ideally you would provide some increased test coverage for it, but we are okay at this point if that isn't the case.
Let me reach out after next week to setup a call to see if and where we can help out eachother.
from oid4vci.
Forgot to close this issue while merging the PR. Thanks again for the PR
from oid4vci.
In the mean time we will add PS256 to the Alg enum, but that would be followed by refactoring the Alg code.
from oid4vci.
I've raised a Pull Request with a change to allow any algorithm as its the responsibility of the implementer to manage the signature part. It also increases the coverage of the part I've modified 😊
Thank you for the quick commit to support other algorithms 👍
from oid4vci.
Related Issues (19)
- `credential_offer_uri=` hosted credential url should be uri encoded in the credential offer
- cNonce is not checked for expiration
- Wrong `content-type` is set for `acquireAccessToken` HOT 5
- Link to spec that is no longer compatible with this library HOT 5
- 'isValidURL' returns false on valid URL HOT 5
- `determineSpecVersionFromURI` error HOT 1
- `getIssuerFromCredentialOfferPayload` error HOT 3
- Mattr Labs v11 issuer throws 400 on credential request HOT 2
- Token endpoint resolution HOT 4
- A few type issues from Draft 13 HOT 1
- token_endpoint not added to the metadata HOT 2
- OIDC4VCI is not passing endpointOpts.getCrendentialOfferOpts HOT 2
- Remove support for versions below draft 11 HOT 5
- Separate generic format definitions and the format specific interfaces HOT 1
- Leverage zod (or similar library) for validation HOT 1
- Specific reason why JSON-LD issuance is not supported? HOT 2
- Re-run CI on main to publish new `.next` version HOT 2
- Access token not verified in the credential endpoint implementation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oid4vci.