[Asgardeo] Register your application to sign-in with Ethereum

Achini Udari Jayasena
3 min readNov 20, 2023

--

Introduction to Ethereum Login:

The Sign-In With Ethereum (SIWE) standard powers Ethereum Login, which changes the way people log in to websites by letting users use their Ethereum wallets as safe IDs across multiple services. This decentralised method makes sure that users have full control over their data, which gets rid of the risks that come with centralised identity companies like Facebook. Users decide what information to share, which makes privacy better, since cryptographic markers are used instead of standard personal information.

Getting Started Ethereum Login with Asgardeo:

Ethereum Login, facilitated by Asgardeo, introduces a seamless integration of blockchain-based authentication into the user login experience. Asgardeo, a cloud identity provider facilitator, now enables the creation of Ethereum connectors and updates application login steps accordingly. This collaboration streamlines the process, allowing users to easily incorporate Ethereum Login within their applications.

Developer experience

  • Step 01: Add a new OIDC client.

Use the following request command to add a new OIDC client.

curl -X POST https://oidc.signinwithethereum.org/register -H 'Content-Type: application/json' -d  '{"redirect_uris": ["https://api.asgardeo.io/t/<yourtenantName>/commonauth"]}'

Response:

{
"client_id":"123456788900987654321",
"client_secret":"6dsLG8LFGQRjpKTL",
"registration_access_token":"FXyx8idI5tR8954679845679",
"registration_client_uri":"https://oidc.signinwithethereum.org/client/49bbb8f8-4587-437f-b2a1-9865874684",
"redirect_uris":[
"https://api.asgardeo.io/t/<tenantName>/commonauth"
]
}
  • Step 02: Create Ethereum connector

Connection-> Add new connection-> Select Ethereum -> Add clientID and secreat -> Create

Add retrived client_id and client_secret when creating connector

  • Step 03: Setting up your application with Ethereum as a signup option.

Application-> Edit application-> Signin method-> Add Authetication -> Select Ethereum

User experience:

  • Step 01: User deploy application.

Here I use Asgardeo Tryit application

Note: The application sample indicates that no consent was granted! Yes, sharing privacy information is not required; only your wallet identification is required.Only the wallet ID will be pass as user consent.

Note that It will ask for regiter a wallet at the first time if you not enrol with your wallet at first time. There you can register to “METMASK”.

References:

[1] https://wso2.com/asgardeo/docs/guides/authentication/decentralized-login/sign-in-with-ethereum/#register-asgardeo-in-sign-in-with-ethereum

[2] https://docs.login.xyz/servers/oidc-provider/hosted-oidc-provider

🔐 Unlock IAM Excellence!

📖 Follow me on Medium for insights on into Identity and Access Management strategies, WSO2 Identity Server, Asgardeo and tech trends. Connect with me on LinkedIn and Twitter for more content!

📧 Got questions? Email me at aaujayasena@gmail.com 😊

--

--

Achini Udari Jayasena

🌟 With over 8 years in IT, I'm Senior Software Quality Engineer, dedicated to delivering excellence. Let's build exceptional software experiences together