forked from spruceid/siwe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves server side functionality (spruceid#3)
* External validate function and option to fetch nonce * Add missing dependency * Remove extra line from message * Add EIP1271 support * Message validation * Refactor to use etherjs * Fixes error handling * Make currentSession optional * Adds the retrieval of ensAvatar and includes it in session if available * Removes front-end specific code (spruceid#4) * Removes front-end specific code * Fixes validation * Removed pubkey field * Improved validation error message * Removed unsued field * Removed unused dependency * Add docs * Fix for basePath * Fix jest error * Fix to base path * Fix path script * Removed base path script Co-authored-by: K Rhoda <[email protected]>
- Loading branch information
Showing
10 changed files
with
5,080 additions
and
19,705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
dist | ||
dist | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,34 @@ | ||
# Sign-In with Ethereum | ||
 | ||
|
||
Sign-In with Ethereum describes how Ethereum accounts authenticate with | ||
off-chain services by signing a standard message format parameterized by scope, | ||
session details, and security mechanisms (e.g., a nonce). The goals of this | ||
specification are to provide a self-custodied alternative to centralized | ||
identity providers, improve interoperability across off-chain services for | ||
Ethereum-based authentication, and provide wallet vendors a consistent | ||
machine-readable message format to achieve improved user experiences and | ||
consent management. | ||
|
||
## Motivation | ||
When signing in to popular non-blockchain services today, users will typically | ||
use identity providers (IdPs) that are centralized entities with ultimate | ||
control over users' identifiers, for example, large internet companies and email | ||
providers. Incentives are often misaligned between these parties. Sign-In with | ||
Ethereum offers a new self-custodial option for users who wish to assume more | ||
control and responsibility over their own digital identity. | ||
|
||
Already, many services support workflows to authenticate Ethereum accounts using | ||
message signing, such as to establish a cookie-based web session which can | ||
manage privileged metadata about the authenticating address. This is an | ||
opportunity to standardize the sign-in workflow and improve interoperability | ||
across existing services, while also providing wallet vendors a reliable method | ||
to identify signing requests as Sign-In with Ethereum requests for improved UX. | ||
|
||
This work is sponsored by the Ethereum Foundation and Ethereum Name Service | ||
(ENS). It is being developed in the open through a series of recorded community | ||
calls and public repositories, and its development is informed by over twenty | ||
user interviews with a focus on currently-in-production uses, related prior | ||
EIPs, and fits within product roadmaps. | ||
|
||
## Specification | ||
Specification can be found at the [EIP-4361 GitHub page](https://github.com/ethereum/EIPs/blob/9a9c5d0abdaf5ce5c5dd6dc88c6d8db1b130e95b/EIPS/eip-4361.md). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.