Skip to content

Commit a36ee3d

Browse files
authored
Soft remove SIWE #4924
ref DEV-2300
2 parents c582f61 + 6a617fe commit a36ee3d

File tree

147 files changed

+3684
-15493
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+3684
-15493
lines changed

.make-lint-expect

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ pkg/api/apierrors/tags.go cannot import github.com/authgear/authgear-server/pkg/
66
pkg/api/event/blocking/util.go cannot import github.com/authgear/authgear-server/pkg/util/accesscontrol
77
pkg/api/event/event.go cannot import github.com/authgear/authgear-server/pkg/util/accesscontrol
88
pkg/api/event/hook_response.go cannot import github.com/authgear/authgear-server/pkg/util/validation
9-
pkg/api/model/siwe.go cannot import github.com/authgear/authgear-server/pkg/util/web3
10-
pkg/api/model/web3.go cannot import github.com/authgear/authgear-server/pkg/util/web3
119

1210
exit status 1
1311
pkg/lib/deps/deps_common.go cannot import github.com/authgear/authgear-server/pkg/auth/handler/webapp/authflowv2

.vettedpositions

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
/pkg/auth/handler/saml/login.go:296:3: requestcontext
3737
/pkg/auth/handler/saml/login_finish.go:41:9: requestcontext
3838
/pkg/auth/handler/saml/logout.go:86:9: requestcontext
39-
/pkg/auth/handler/siwe/nonce.go:46:38: requestcontext
4039
/pkg/auth/handler/webapp/account_status.go:48:27: requestcontext
4140
/pkg/auth/handler/webapp/auth_entry_point_middleware.go:31:31: requestcontext
4241
/pkg/auth/handler/webapp/auth_entry_point_middleware.go:32:35: requestcontext
@@ -172,7 +171,6 @@
172171
/pkg/auth/handler/webapp/login.go:115:28: requestcontext
173172
/pkg/auth/handler/webapp/login_link_otp.go:121:27: requestcontext
174173
/pkg/auth/handler/webapp/logout.go:71:27: requestcontext
175-
/pkg/auth/handler/webapp/missing_web3_wallet.go:78:27: requestcontext
176174
/pkg/auth/handler/webapp/panic_middleware.go:68:61: requestcontext
177175
/pkg/auth/handler/webapp/passkey_creation_options.go:43:28: requestcontext
178176
/pkg/auth/handler/webapp/passkey_request_options.go:52:28: requestcontext

authui/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ make generate-material-icons
1010

1111
After that, commit the changes in `scripts/python/material-icons.txt`, `authui/src/authflowv2/icons/material-symbols-outlined-subset.ttf` and `authui/src/authflowv2/icons/material-symbols-outlined-subset.woff2`.
1212

13-
### @metamask/jazzicon
13+
### ./tarballs/
1414

15-
In oursky/authgear-server, the connection to the URL `https://codeload.github.com/MetaMask/jazzicon/tar.gz/4fe23bbbe5088e128cb24082972e28d87e76d156` fails very often.
16-
Therefore, we download the tarball, and use it directly.
17-
We also updated to the latest commit.
18-
See https://github.com/MetaMask/jazzicon/compare/d923914fda6a8795f74c2e66134f73cd72070667..4fe23bbbe5088e128cb24082972e28d87e76d156 for the changes.
19-
The changes DO NOT cover runtime behavior changes, so it is safe to upgrade.
15+
As a workaround, we can put tarballs in ./tarballs to install dependency from a tarball.
16+
This usage is not encouraged.

authui/package-lock.json

Lines changed: 2 additions & 180 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

authui/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525
"process": false
2626
},
2727
"overrides": {
28-
"caniuse-lite": "1.0.30001653",
29-
"ethers": {
30-
"ws": "^7.5.10"
31-
}
28+
"caniuse-lite": "1.0.30001653"
3229
},
3330
"devDependencies": {
3431
"@jest/globals": "29.7.0",
@@ -57,18 +54,14 @@
5754
"@floating-ui/dom": "1.5.4",
5855
"@hotwired/stimulus": "3.2.2",
5956
"@hotwired/turbo": "7.3.0",
60-
"@metamask/detect-provider": "2.0.0",
61-
"@metamask/jazzicon": "file:tarballs/jazzicon-4fe23bbbe5088e128cb24082972e28d87e76d156.tar.gz",
6257
"@sentry/browser": "^8.33.1",
6358
"@tabler/icons": "1.107.0",
6459
"axios": "1.7.4",
6560
"cldr-localenames-full": "44.1.0",
6661
"cropperjs": "1.6.1",
67-
"ethers": "6.13.2",
6862
"intl-tel-input": "18.5.3",
6963
"libphonenumber-js": "1.10.53",
7064
"luxon": "3.4.4",
71-
"siwe": "2.3.2",
7265
"zxcvbn": "4.4.2"
7366
}
7467
}

authui/src/authgear.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import {
4141
PasskeyAutofillController,
4242
AuthflowPasskeyErrorController,
4343
} from "./passkey";
44-
import { WalletConfirmationController, WalletIconController } from "./web3";
4544
import { init as SentryInit, browserTracingIntegration } from "@sentry/browser";
4645
import { LockoutController } from "./lockout";
4746
import { MirrorButtonController } from "./mirrorbutton";
@@ -118,9 +117,6 @@ Stimulus.register(
118117
);
119118
Stimulus.register("authflow-passkey-error", AuthflowPasskeyErrorController);
120119

121-
Stimulus.register("web3-wallet-confirmation", WalletConfirmationController);
122-
Stimulus.register("web3-wallet-icon", WalletIconController);
123-
124120
Stimulus.register("lockout", LockoutController);
125121

126122
Stimulus.register("mirror-button", MirrorButtonController);

0 commit comments

Comments
 (0)