Commit 1c72e93
authored
Auto merge of #640 - lucas/finish-auth-flows, r=lennartkloock
finish totp auth flows
finish 2fa totp flows and cleanup login flow. Redirect seems to be only for server components so changed redirects to use `goto` and works well and fixes issues with the preview link
Uusers need to be able to escape the 2fa state and still return to the login screen. Currently they will always be stuck on the `/mfa` page regardless of navigation. This PR updates this so that the base "unauthenticated" pages can still be accessed. A user who is "half-authenticated" should not have to click on a logout button to initiate a login with a different account
For example -
- a successful magic link navigates you to the 2fa page
- deciding not to enter 2fa, user visits login page again and attempts to login with magic link again
- User should be able to successfully use a different login or instantiate a new login successfully to enter the app (old userSession can be revoked if desired)
So now routing to "/" will only default route to "/mfa" on internal route access. All external routes will now still be accessible
<!--
Thank you for your Pull Request. Please provide a short description of your changes above.
Bug fixes and new features should include tests.
Contributors guide: https://github.com/ScuffleCloud/.github/blob/main/CONTRIBUTING.md
-->
Requested-by: lucassshanks <[email protected]>
Reviewed-by: lennartkloock <[email protected]>File tree
76 files changed
+1598
-903
lines changed- cloud
- core/src
- operations
- services
- dashboard
- src
- features
- login-two-factor
- login
- auth-callbacks
- settings
- manage-two-factor
- password
- lib
- components
- routes
- (authenticated)
- projects
- settings/user
- (unauthenticated)
- forgot-password
- login
- magic-link
- magic-link-sent
- mfa
- oauth2-callback/google
- passkey
- password
- register/confirm
- forgot-password
- login
- magic-link
- magic-link-sent
- oauth2-callback/google
- passkey
- password
- styles
- proto/pb/scufflecloud/core/v1
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
76 files changed
+1598
-903
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
47 | 44 | | |
48 | 45 | | |
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
13 | 44 | | |
14 | 45 | | |
| 46 | + | |
15 | 47 | | |
16 | 48 | | |
17 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
Lines changed: 33 additions & 83 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
15 | | - | |
16 | | - | |
| 12 | + | |
| 13 | + | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | | - | |
| 19 | + | |
| 20 | + | |
23 | 21 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 22 | + | |
50 | 23 | | |
51 | 24 | | |
52 | 25 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 26 | + | |
59 | 27 | | |
60 | 28 | | |
61 | 29 | | |
62 | 30 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 31 | | |
68 | 32 | | |
69 | 33 | | |
| |||
72 | 36 | | |
73 | 37 | | |
74 | 38 | | |
75 | | - | |
| 39 | + | |
76 | 40 | | |
77 | 41 | | |
78 | 42 | | |
79 | | - | |
80 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
81 | 62 | | |
82 | 63 | | |
83 | 64 | | |
84 | 65 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 66 | | |
121 | 67 | | |
122 | 68 | | |
| |||
177 | 123 | | |
178 | 124 | | |
179 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
180 | 130 | | |
0 commit comments