-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WAL-703 : web3 based auth #837
base: main
Are you sure you want to change the base?
Conversation
- on local run, API server and Frontend server are on different ports, thus different hosts, so this was blocked by the browser. In production they are on the same host, so it should work there - support auth.token in addition (set by frontend auth lib), so to work in both cases
console.log("open web3"); | ||
alert("Not supported in this version."); | ||
async function openWeb3() { | ||
const response = await fetch("http://localhost:7001/auth/account/web3/nonce", { method: "GET" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://localhost:7001
console.log("Signature:", signature); | ||
const verificationResponse = await fetch("http://localhost:7001/auth/account/web3/signed", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://localhost:7001
@@ -81,7 +84,7 @@ object Db { | |||
|
|||
SchemaUtils.drop(*(tables.reversedArray())) | |||
SchemaUtils.create(*tables) | |||
|
|||
SchemaUtils.create(AuthnzUsers, AuthnzAccountIdentifiers, AuthnzStoredData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if FeatureManager.isFeatureEnabled FeatureCatalog.authnzFeature
Quality Gate passedIssues Measures |
Description
A new auth method in authnz based on web3 keys
Type of Change
Checklist
Breaking