jetty / jetty.project

Eclipse Jetty® - Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more
https://eclipse.dev/jetty
Other
3.82k stars 1.9k forks source link

Implement Web3 OAuth/Sign-In Functionality #11560

Open 0xmulch opened 5 months ago

0xmulch commented 5 months ago

Overview

I would like to suggest Jetty should integrate Web3 OAuth/Sign-In to let users log in with their blockchain wallets, like MetaMask or WalletConnect.

This move taps into the secure and user-friendly aspects of blockchain, offering a modern twist to logging in without traditional usernames and passwords. Impact to legacy code is minimal, so this would be a means of radically modernizing Jetty in the eyes of the public, without a lot of technical overhead for maintainers.

Following implementation, users would be able to authenticate by simply connecting their wallet! It’s like “Sign in with Google" but on-chain and permission-less. Moreover, numerous libraries already provide this functionality.

Long-term, Jetty could have significant potential within the Web3 space, particularly for enhancing cross-chain communications and supporting decentralized physical infrastructure. Jetty could play a crucial role in the evolving Web3 ecosystem. If explored, this direction could greatly amplify Jetty's impact on blockchain interoperability and the broader adoption of decentralized and open source systems.

Enhancement-Specific Description

Looking forward to making Jetty a pioneer in Web3. Open to feedback/questions.

CC: @jmcc0nn3ll

gregw commented 5 months ago

@lachlan-roberts is this something you'd like to look into?

0xmulch commented 5 months ago

@lachlan-roberts If you run into any snags, don't hesitate to reach out and I can try to help you out.

lachlan-roberts commented 2 months ago

@0xmulch I have opened PR #11883 if you wish to review.

It is still a draft PR as there is still work to do including the documentation, but it is working and would be good to receive some early reviews.