Coder Social home page Coder Social logo

Need authenticate func about ual-anchor HOT 6 CLOSED

greymass avatar greymass commented on July 21, 2024
Need authenticate func

from ual-anchor.

Comments (6)

aaroncox avatar aaroncox commented on July 21, 2024 2

Alright, [email protected] is published now and does expose the proofs themselves.

I have also updated our ual-reactjs-renderer-demo-multipass repository to include how to verify these proofs, which can be found here:

https://github.com/greymass/ual-reactjs-renderer-demo-multipass/blob/0c71aec6de6882162ba75db87dbc01efed693bb5/src/Main.js#L33-L51

The proof itself is not persisted and is only available upon initial login, so additional checks are needed to see if the proof exists before validating it.

from ual-anchor.

aaroncox avatar aaroncox commented on July 21, 2024 1

The login process in ual-anchor does already verify the possession of a private key and return a proof through the use of identity requests as it uses anchor-link to call the identify method.

The proofs are returned via the callback method, which could also be listened for on a centralized server.

It doesn't look like we're exposing that proof right now in UAL though, which is returned as identity in this part of ual-anchor. We'll add that information to the returned AnchorUser object so that other applications can also verify the signature being returned and provide proof of ownership.

from ual-anchor.

aaroncox avatar aaroncox commented on July 21, 2024 1

Sorry for the delay, we had a few external things impacting us getting back on top of UAL.

I pushed this up on my priorities list, I'll see if we can get it exposed soon in a new release of ual-anchor.

from ual-anchor.

gtolarc avatar gtolarc commented on July 21, 2024

I confirmed that I can get the desired value by returning the login function manually. As you mentioned, it would be really nice to add the return content to the anchorUser object at the login.

from ual-anchor.

gtolarc avatar gtolarc commented on July 21, 2024

We'll add that information to the returned AnchorUser object so that other applications can also verify the signature being returned and provide proof of ownership.

When can you implement this part? @aaroncox

from ual-anchor.

gtolarc avatar gtolarc commented on July 21, 2024

thx!! @aaroncox

from ual-anchor.

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.