junobuild / juno-js

JavaScript libraries for interfacing with Juno
MIT License
13 stars 1 forks source link

Generic authentication to support additional providers such as Stoic and Plug #156

Open peterpeterparker opened 3 weeks ago

peterpeterparker commented 3 weeks ago

Request

Some developers would like to be able to use Stoic or Plug in their dApp for authentication purposes.

Notes

This feature request concerns a "login flow" and not a "wallet signature flow."

Links

Technical notes

Conclusion

While it seems feasible to implement a login flow with these methods, it is still unclear if there is significant demand within the IC ecosystem for such flows. On the forum, only one project communicated that they implemented such flows, and on Discord, two developers shared their interest in such a feature.

Given the above technical notes, it is clear that in the current state, these libraries cannot be incorporated into the core of Juno's libraries. However, the core can be reworked to expose interfaces and patterns that could be used by consumers, allowing developers to provide their own authentication providers. We can share some snippets to ease the integration, adopting a "bring your own authentication" approach.

While this seems straightforward on paper, in addition to the feature itself, it likely requires a significant refactoring.

CodingFu commented 1 week ago

I would love to be able to login with plug wallet!