Skip to content
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

Open
wants to merge 44 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
1c8b5fb
feat: web3 based auth
SuperBatata Nov 27, 2024
d15af24
Merge branch 'refs/heads/main' into web3-auth
waltkb Dec 12, 2024
097a765
Integrated basic authnz login
waltkb Dec 17, 2024
a042913
Merge branch 'main' into web3-auth
SuperBatata Dec 26, 2024
3a392ce
Added web3 wallet connection
SuperBatata Jan 1, 2025
498c302
feat : made verification based on web3 signature
SuperBatata Jan 1, 2025
f13ffa3
fix web3 wallet signature
SuperBatata Jan 1, 2025
c319a36
dep : added web3j dependencies
SuperBatata Jan 1, 2025
0d26d61
fix : monorepo dependencies
SuperBatata Jan 3, 2025
7cf951b
debugging verification
SuperBatata Jan 6, 2025
952fa5d
fix : verify signature using web3
SuperBatata Jan 7, 2025
33bfe9c
fix : siwe dep
SuperBatata Jan 7, 2025
c6856c9
fix : verification flow for web3
SuperBatata Jan 8, 2025
a6443bd
chore : removed unused file
SuperBatata Jan 8, 2025
d2bc3b8
chore : clean dependencies
SuperBatata Jan 8, 2025
70a2a69
Merge branch 'main' into web3-auth
SuperBatata Jan 8, 2025
1581079
add AuthenticationService
SuperBatata Jan 12, 2025
f6783b1
add tables for web3 auth
SuperBatata Jan 13, 2025
a6d166d
use editableAccountStore when ktorAuthnzAuthenticationFeature enabled
SuperBatata Jan 13, 2025
896eaa7
fix AuthenticationService.kt
SuperBatata Jan 13, 2025
c0a1477
Major work on web3 login
waltkb Jan 14, 2025
b70ea4a
Fix tests (non-required argument)
waltkb Jan 14, 2025
1c4077b
- Login cookie was not correctly set
waltkb Jan 15, 2025
ecb75c7
Disable currently unavailable EBSI tests
waltkb Jan 15, 2025
08c19d4
Also automatically create wallet in register-during-authenticate regi…
waltkb Jan 15, 2025
1cac468
Use account name instead of account email for wallet name
waltkb Jan 15, 2025
edecafb
Update getUserUUID to support both legacy and authnz auth, same for g…
waltkb Jan 15, 2025
4be17a5
Add account registration for web3Registration
waltkb Jan 15, 2025
485d1bf
Fix old JVM mismatch
waltkb Jan 15, 2025
5b0faac
Allow setting generic name for user in frontend (instead of just email)
waltkb Jan 15, 2025
fb2d062
Implement simple authnz logout for vue frontend
waltkb Jan 15, 2025
5812a26
Exclamation mark at login page
waltkb Jan 15, 2025
5b69da3
Merge branch 'main' into web3-auth
SuperBatata Jan 15, 2025
cf6b97f
fix : fix for hard coded dispatcher
SuperBatata Jan 15, 2025
12e6477
fix : implement correct exception for not implemented function
SuperBatata Jan 15, 2025
8ba39fc
fix : remove testing condition used while debugging
SuperBatata Jan 15, 2025
75593ee
Update default configs
waltkb Jan 16, 2025
a28bf4e
Update default configs
waltkb Jan 16, 2025
1e92279
Update default configs
waltkb Jan 16, 2025
9de7abf
Fix Sonarqube reported issues
waltkb Jan 16, 2025
313f2bf
fix : hardcoded url
SuperBatata Jan 16, 2025
0363363
fix : auth route for Authnz
SuperBatata Jan 16, 2025
34aff5d
fix : DB creation when feature is enabled
SuperBatata Jan 16, 2025
882d7bc
Merge branch 'main' into web3-auth
SuperBatata Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .run/Web wallet backend.run.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Web wallet backend" type="JetRunConfigurationType">
<option name="ALTERNATIVE_JRE_PATH" value="21"/>
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true"/>
<option name="MAIN_CLASS_NAME" value="id.walt.webwallet.MainKt"/>
<module name="id.walt.waltid-identity.waltid-services.waltid-wallet-api.main"/>
<option name="PROGRAM_PARAMETERS" value="--logLevel=trace"/>
<shortenClasspath name="NONE"/>
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/waltid-services/waltid-wallet-api"/>
<method v="2">
<option name="Make" enabled="true"/>
</method>
</configuration>
</component>
<configuration default="false" name="Web wallet backend" type="JetRunConfigurationType">
<option name="ALTERNATIVE_JRE_PATH" value="21" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" />
<option name="MAIN_CLASS_NAME" value="id.walt.webwallet.MainKt" />
<module name="waltid-identity.waltid-services.waltid-wallet-api.main" />
<option name="PROGRAM_PARAMETERS" value="--logLevel=trace" />
<shortenClasspath name="NONE" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/waltid-services/waltid-wallet-api" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<!-- src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"/> -->
<span
class="ml-3 hidden text-sm font-medium text-gray-700 lg:block"
>{{ user.email }}</span
>{{ user.friendlyName }}</span
>
<ChevronDownIcon
aria-hidden="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
<!-- src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"/> -->
<span
class="ml-3 hidden text-sm font-medium text-gray-700 lg:block"
>{{ user.email }}</span
>{{ user.friendlyName }}</span
>
<ChevronDownIcon
aria-hidden="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
d="M20.6256 10.2949C20.6256 11.3235 20.1909 12.3099 19.4172 13.0373C18.6435 13.7646 17.5942 14.1732 16.5 14.1732C15.4058 14.1732 14.3565 13.7646 13.5828 13.0373C12.8091 12.3099 12.3744 11.3235 12.3744 10.2949C12.3744 9.26639 12.8091 8.27995 13.5828 7.55265C14.3565 6.82534 15.4058 6.41675 16.5 6.41675C17.5942 6.41675 18.6435 6.82534 19.4172 7.55265C20.1909 8.27995 20.6256 9.26639 20.6256 10.2949ZM8.25 24.8956C8.28535 22.8607 9.17009 20.9204 10.7134 19.4931C12.2568 18.0658 14.335 17.2659 16.5 17.2659C18.665 17.2659 20.7432 18.0658 22.2866 19.4931C23.8299 20.9204 24.7146 22.8607 24.75 24.8956C22.1618 26.0112 19.3473 26.587 16.5 26.5834C13.556 26.5834 10.7616 25.9794 8.25 24.8956Z"
stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span class="ml-1 hidden text-sm font-medium text-gray-700 lg:block">{{ user.email
}}</span>
<span class="ml-1 hidden text-sm font-medium text-gray-700 lg:block">{{ user.friendlyName }}</span>
<ChevronDownIcon aria-hidden="true"
class="ml-1 hidden h-5 w-5 flex-shrink-0 text-gray-400 lg:block" />
</MenuButton>
Expand Down Expand Up @@ -88,4 +87,4 @@ const { user } = storeToRefs(userStore);

const currentWallet = useCurrentWallet()
const profileUrl = `/wallet/${currentWallet.value}/profile`
</script>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</svg>
<span
class="ml-1 hidden text-sm font-medium text-gray-700 lg:block"
>{{ user.email }}</span
>{{ user.friendlyName }}</span
>
<ChevronDownIcon
aria-hidden="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/>
</svg>
</div>
<p class="text-center font-bold">{{ user.email }}</p>
<p class="text-center font-bold">{{ user.friendlyName }}</p>
<div class="bg-white rounded-lg shadow-md p-4 mt-4">
<div class="font-bold text-lg">DID</div>
<p class="mt-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"pinia": "^2.2.4",
"qr-scanner": "^1.4.2",
"qrcode.vue": "^3.5.0",
"unocss": "^0.63.4"
"unocss": "^0.63.4",
"@metamask/sdk": "^0.31.4"
},
"devDependencies": {
"@nuxt/content": "^2.13.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<!-- src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"/> -->
<span
class="ml-3 hidden text-sm font-medium text-gray-700 lg:block"
>{{ user.email }}</span
>{{ user.friendlyName }}</span
>
<ChevronDownIcon
aria-hidden="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
<!-- src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"/> -->
<span
class="ml-3 hidden text-sm font-medium text-gray-700 lg:block"
>{{ user.email }}</span
>{{ user.friendlyName }}</span
>
<ChevronDownIcon
aria-hidden="true"
Expand Down
Loading
Loading