Giter VIP home page Giter VIP logo

Comments (7)

OR13 avatar OR13 commented on September 18, 2024

I think the top level JWT should be sign-able by non DIDs.

from .well-known.

OR13 avatar OR13 commented on September 18, 2024

Implemented a demo: #2

decided not to sign the top level object.

from .well-known.

ipatka avatar ipatka commented on September 18, 2024

Nice! I reviewed the implementation and I was able to run the demo locally
Screen Shot 2019-08-06 at 7 52 20 PM
Screen Shot 2019-08-06 at 7 52 14 PM

What do you mean by the following?

The demo opens up more questions about what "verification" of claims mean.

from .well-known.

OR13 avatar OR13 commented on September 18, 2024

awesome!

The claim in the JWT has a domain field. here is some pseudo code explaining how verification should work.

config = GET JSON ( https://example.com/.well-known/did-configuration )
For each claim in config:
- verify claim was signed by did listed in config (use resolver to get public keys)
- verify that domain in claim matches "example.com"

In the demo provided, there is no check for the last bit.

I would expect the demo to fail or warn when running on localhost.

What should the behavior be?

from .well-known.

ipatka avatar ipatka commented on September 18, 2024

Oh I see. What if on the client side it just checked if verified.domain matches window.location.hostname?

from .well-known.

OR13 avatar OR13 commented on September 18, 2024

Thats a good idea for self requests, but the client is always going to need to trust its own web server, and this spec should theoretically support CORs, where:

example.com has DIDs and can trust api.example2.com's DIDs.

the origin of a well-known did config should be present in each of the claims as the domain field.

That way 2 servers can use this for mutual auth if they wanted to.

from .well-known.

OR13 avatar OR13 commented on September 18, 2024

I'm gonna close this now that the example is merged. Feel free to open new issues with concerns / questions/

from .well-known.

Related Issues (20)

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.