Embed internet identity login in dapp frontend

Hi developers,
The new Internet identity seems promise with OpenId integration. Now every login flow seems like this.

  1. Click “Login with Internet identity”
  2. Redirect to id.ai
  3. User Click “Login with google”
  4. User redirect to Google
  5. Select account
  6. Redirect to origin page

As a user, never use Internet identity, it feel scary to use it because they don’t understand concept of internet identity, they just need to login to dapp.

As a dapp developer, I prefer a way to embed login with goole or passkey in my frontend with Internet identity login feature


Here is one example

1 Like

Hi!

We are working on something that might resemble this, to make the integration with Internet Identity more seamless than it is today.

Stay tuned!

Do you have ETA? is that anything will release this year?

Not specific ETA. Yes, I’m hoping for this year.

Do you know how to do it in theory. We want to implement some POC!

We are going to implement it in Internet Identity if we do so.

The project is open source, so if you want ot take inspiration take a look at the repository of Internet Identity.

1 Like

I tried to clone the code from frontend and calling requestJWT in my frontend, but seems my endpoint doesn’t included in “Authorized redirect URIs”.

My login flow
Frontend → Google login → redirect URI - stoped here because my frontend is not included in client setting

bioniq + web3Auth doesn’t have this method because in redirect_uri is web3auth
bioniq flow:
Frontend → Web3Auth → Google login → Web3Auth callback → Frontend

CONCLUSION : Cannot support google login embed until II frontend support callback with other frontend

Were you trying to connect your frontend to II’s backend?

Yes, Dumb me think it will work if I try to copy code from II to my frontend

it is great if we can continue on this post :flexed_biceps:

Hehe, yes, sorry. OpenID providers need a set of valida authorized callback URLs, so they won’t work with any other frontend…

Yeah the main purpose of my intent is avoid bad UX from II, and I’m not understand much about google login flow.
But like you said, if II team saw the UX is a problem then we dont need this feature at all. Just fix the flow like web3Auth, the adoption my be easy for new comer

Here is good UX I mean but it only applied for first time using id.ai and with gmail never connect before

1 Like