mbkauthe 4.8.4 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/docs/api.md +29 -178
- package/docs/db.md +1 -1
- package/docs/db.sql +305 -253
- package/index.js +6 -3
- package/lib/config/cookies.js +84 -18
- package/lib/config/index.js +3 -1
- package/lib/config/tokenScopes.js +1 -1
- package/lib/createTable.js +95 -8
- package/lib/db/AuthRepository.js +336 -0
- package/lib/db/BaseRepository.js +193 -0
- package/lib/db/dialects/postgres.js +18 -0
- package/lib/main.js +5 -5
- package/lib/middleware/auth.js +213 -259
- package/lib/middleware/index.js +18 -25
- package/lib/middleware/scopeValidator.js +8 -3
- package/lib/pool.js +5 -6
- package/lib/routes/auth.js +95 -169
- package/lib/routes/dbLogs.js +247 -29
- package/lib/routes/misc.js +17 -50
- package/lib/routes/oauth.js +23 -48
- package/lib/utils/dbQueryLogger.js +485 -80
- package/lib/utils/errors.js +1 -1
- package/lib/utils/logger.js +12 -0
- package/lib/utils/timingSafeToken.js +1 -1
- package/package.json +1 -1
- package/public/main.css +36 -3
- package/test.spec.js +515 -48
- package/views/header.handlebars +1 -1
- package/views/pages/2fa.handlebars +9 -5
- package/views/pages/dbLogs.handlebars +618 -420
- package/views/pages/loginmbkauthe.handlebars +42 -25
- package/views/showmessage.handlebars +2 -2
package/public/main.css
CHANGED
|
@@ -286,6 +286,14 @@ header {
|
|
|
286
286
|
transition: var(--transition);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
.icon-button {
|
|
290
|
+
appearance: none;
|
|
291
|
+
border: 0;
|
|
292
|
+
background: transparent;
|
|
293
|
+
padding: 0;
|
|
294
|
+
font: inherit;
|
|
295
|
+
}
|
|
296
|
+
|
|
289
297
|
.input-icon:hover {
|
|
290
298
|
color: var(--accent);
|
|
291
299
|
}
|
|
@@ -304,6 +312,14 @@ header {
|
|
|
304
312
|
box-shadow: var(--box-shadow);
|
|
305
313
|
}
|
|
306
314
|
|
|
315
|
+
.btn-social,
|
|
316
|
+
.swi {
|
|
317
|
+
appearance: none;
|
|
318
|
+
border: 0.13rem solid;
|
|
319
|
+
font: inherit;
|
|
320
|
+
cursor: pointer;
|
|
321
|
+
}
|
|
322
|
+
|
|
307
323
|
.swi {
|
|
308
324
|
display: flex;
|
|
309
325
|
align-items: center;
|
|
@@ -315,7 +331,6 @@ header {
|
|
|
315
331
|
font-size: var(--text-size-sm);
|
|
316
332
|
text-decoration: none;
|
|
317
333
|
transition: var(--transition);
|
|
318
|
-
border: 0.13rem solid;
|
|
319
334
|
position: relative;
|
|
320
335
|
z-index: 1;
|
|
321
336
|
overflow: hidden;
|
|
@@ -423,6 +438,25 @@ header {
|
|
|
423
438
|
text-decoration: none;
|
|
424
439
|
}
|
|
425
440
|
|
|
441
|
+
.btn-message-action {
|
|
442
|
+
appearance: none;
|
|
443
|
+
border: 0;
|
|
444
|
+
border-radius: var(--border-radius);
|
|
445
|
+
background: var(--accent);
|
|
446
|
+
color: var(--dark);
|
|
447
|
+
font: inherit;
|
|
448
|
+
font-weight: 700;
|
|
449
|
+
cursor: pointer;
|
|
450
|
+
padding: 0.7rem 1rem;
|
|
451
|
+
transition: var(--transition);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.btn-message-action:hover,
|
|
455
|
+
.btn-message-action:focus-visible {
|
|
456
|
+
background: var(--surface-1);
|
|
457
|
+
color: var(--accent);
|
|
458
|
+
}
|
|
459
|
+
|
|
426
460
|
.token-container {
|
|
427
461
|
animation: fadeInUp 0.4s ease-out;
|
|
428
462
|
}
|
|
@@ -746,7 +780,7 @@ header {
|
|
|
746
780
|
}
|
|
747
781
|
|
|
748
782
|
.brand-title {
|
|
749
|
-
font-size: 1.
|
|
783
|
+
font-size: 1.75rem;
|
|
750
784
|
font-weight: 700;
|
|
751
785
|
color: var(--light);
|
|
752
786
|
margin-bottom: 0.75rem;
|
|
@@ -776,7 +810,6 @@ header {
|
|
|
776
810
|
font-size: 0.9rem;
|
|
777
811
|
text-decoration: none;
|
|
778
812
|
transition: var(--transition);
|
|
779
|
-
border: 0.13rem solid;
|
|
780
813
|
position: relative;
|
|
781
814
|
z-index: 1;
|
|
782
815
|
overflow: hidden;
|