auth0 did spaces integration
hello!
we really want to attract non-crypto natives to use our blocklet, the BM-9000. we have met a lot of resistance when we ask people to setup a wallet before they can start using the app.
the team told us last month that they were working on getting a did spaces setup for people automatically that login using auth0.
can you prioritize this feature? i think it's critical for us and basically every other blocklet to be able to onboard people easily and get people to start using the apps we've built.
we are really looking forward to this feature and have big plans once it's rolled out.
thank you!
z1VV21NqNWkiadznN32ALkos5dQqQwnCMty z1QsuPsVgzPk2Nij87QFjyVh4v7Hvz5fsZj
20 条回复
Hi, this feature is already on our roadmap, since the community have requested multiple times, we will put this to high priority, please stay tuned.
z1VV21NqNWkiadznN32ALkos5dQqQwnCMty z1bhjbMg9fma2gVTi2DmSLhEv81taqUEaf2
Thank you for the consideration.
Meeting people in their web2 space is a huge part of bridging the gap. And something that ArcBlock with its advanced use of cloud computing is in a unique place to do.
Our team is working on a BM9000 trial version, which we will host for free on our site. The full version, which will only be available when the user launches the blocklet themselves.
By allowing users to get a a taste, coupled with clear instruction on how to get a wallet and ABT, our goal is to create a compelling case for users to take the final steps into web3.
Thanks again all your hard work. Trust that as soon as you give us this powerful tool we will commence to building quickly, the next floor on this project.
hello, I have the following questions regarding this post: Q1: Can you describe in detail what the process will look like after the integration of auth0 and DID Spaces?
Q2: What problems did you encounter when setting up the DID Wallet? Are there any improvements you would like to see?
z1e4XATJSo1Y1jom17Uhj1SpKZ4LFmYSaHY z1notyEjWxWTWj1pUANTyPXV4hd2sZX1hzZ
to answer Q1: Can you describe in detail what the process will look like after the integration of auth0 and DID Spaces?
we would like the user to login with auth0 and have a did space (and wallet?) created for them that our app can read & write from. our app requires did space and so we're trying to allow users to use their email in order to login to the app (without having to download and create a wallet).
Our solution will not require DID Wallet in the whole workflow, which I think is aligned with yours.
ok great. i will just wait to hear for the solution!
yes, confirmed that
const { user } = await authService.getUser(req.user?.did as string);does not in fact return a didSpace. can you advise on how to retrieve that? i can receive it on the frontend using useSessionContext().z1d5y4TyLECjNb6P9dE96BjAb2LjKhN75M9 z1VV21NqNWkiadznN32ALkos5dQqQwnCMty
Hi, we just released the OAuth support for DID Spaces, please checkout:
thanks! i updated it how you proposed. here's my current dependencies:
"dependencies": { "@arcblock/did-auth": "^1.18.164", "@arcblock/did-auth-storage-nedb": "^1.7.1", "@blocklet/did-space-js": "^0.6.0", "@blocklet/sdk": "^1.16.36", "@breezystack/lamejs": "^1.2.7", "@did-space/core": "^0.6.0", "@project-serum/anchor": "^0.26.0", "@shadow-drive/sdk": "^6.0.0", "@solana/web3.js": "^1.98.0", "autoprefixer": "^10.4.20", "axios": "^1.7.9", "cookie-parser": "^1.4.7", "cors": "^2.8.5", "dotenv-flow": "^4.1.0", "express": "^4.21.2", "express-async-errors": "^3.1.1", "lodash": "^4.17.21", "multer": "^1.4.5-lts.1", "nanoid": "^5.0.9", "pg": "^8.13.1", "pg-hstore": "^2.3.4", "postcss-cli": "^11.0.0", "react-knob-headless": "0.3.0", "react-piano-roll": "^0.1.3", "react-rotary-knob": "^3.0.3", "react-rotary-knob-skin-pack": "^1.0.2", "shelljs": "^0.8.5", "tailwindcss": "^3.4.17", "url-join": "^5.0.0", "wav-encoder": "^1.3.0" },
also - blocklet server is up to date. The current version 1.16.33 is the latest version, no need to upgrade
unfortunately now i cant login at all and am stuck in a loop.
oh here are my devDependencies related to arcblock:
session context:
import { createAuthServiceSessionContext } from '@arcblock/did-connect/lib/Session';import { useContext } from 'react';const { SessionProvider, SessionContext, SessionConsumer, withSession } = createAuthServiceSessionContext();function useSessionContext() {const info = useContext(SessionContext);return info as any;}export { SessionProvider, SessionContext, SessionConsumer, useSessionContext, withSession };usage:
const { session } = useSessionContext();await session.login();here are the console errors when trying to login:
service-worker.js:1 Uncaught (in promise) bad-precaching-response: bad-precaching-response :: [{"url":"https://bhqa7g2n377vln7nbtt5gmbgj2fyxhgglvzh3d5qcyu-192-168-86-32.ip.abtnet.io/.well-known/service/assets/_createAggregator-DrVSAj0q.js","status":400}]at w._handleInstall (https://bhqa7g2n377vln7nbtt5gmbgj2fyxhgglvzh3d5qcyu-192-168-86-32.ip.abtnet.io/.well-known/service/service-worker.js:1:9910)beat-machine.tsx:2238 SessionProvider.refresh error TypeError: Cannot set properties of undefined (setting 'headers')Can you try logging in using the browser's incognito mode?
have to use my phone (browser extensions disabled in incognito mode)....tried logging in with incognito mode and it gets stuck here:
i enabled did wallet extension in incognito mode and it still just keeps asking me to login (just like in normal mode)
i can login now fine but when i go to profile i'm getting the same error:
https://bhqa7g2n377vln7nbtt5gmbgj2fyxhgglvzh3d5qcyu-192-168-86-32.ip.abtnet.io/.well-known/service/user
service-worker.js:1 Uncaught (in promise) bad-precaching-response: bad-precaching-response :: [{"url":"https://bhqa7g2n377vln7nbtt5gmbgj2fyxhgglvzh3d5qcyu-192-168-86-32.ip.abtnet.io/.well-known/service/assets/_createAggregator-DHQaEdHP.js","status":400}]hi, is the latest beta 1.16.36? because i already upgraded my blocklet server to this and it was still giving me this error and showing a blank profile page.
thanks!
Hi, is the above blocking issue resolved?
yes, looks good now! thanks for all the help z1VV21NqNWkiadznN32ALkos5dQqQwnCMty z1nM84T3vKVzEkVF4H95vHkRwPwFARnB9wc z1TFmhjLLroSTYtJT5PF61aatJBKdfRG7ck