Giter VIP home page Giter VIP logo

Comments (5)

nklomp avatar nklomp commented on May 25, 2024

We will have to test it. But be aware that the spec requires htrps connections, so probably that is the reason for it.

from oid4vci.

nklomp avatar nklomp commented on May 25, 2024

Of course we can make an exception for localhost if the above is the reason for it.

from oid4vci.

nklomp avatar nklomp commented on May 25, 2024

Oh, overlooked something, which I now see when generating some test cases. Your example really isn't a valid url. The scheme should be http:// not just http:. Will add some testcases to verify.

The regex does allow for non-https sheme's already it seems

from oid4vci.

nklomp avatar nklomp commented on May 25, 2024

Okay looking at the regex, it does go wrong even if the scheme is correctly applied. That has to do with the regex either accepting an IPV4 address (so 127.0.0.1 would have worked) or a hostname with a domain. So it required at least one dot in the hostname. Obviously the hostname 'localhost' doesn't have that. Have adjusted the regex and will add some more test cases. A new release with the fix will follow shortly

from oid4vci.

nklomp avatar nklomp commented on May 25, 2024

0.3.6 has a fix in it allowing for localhost.

from oid4vci.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.