mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
webauthn@8
This commit is contained in:
9 files changed
+17
-17
No files matched your search
@@ -4,8 +4,8 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "react.yaml",
|
"main": "react.yaml",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
||||||
"@typescript-eslint/parser": "^6.7.0",
|
"@typescript-eslint/parser": "^6.7.2",
|
||||||
"eslint-config-airbnb": "^19.0.4",
|
"eslint-config-airbnb": "^19.0.4",
|
||||||
"eslint-config-airbnb-typescript": "^17.1.0",
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
||||||
"eslint-plugin-import": "2.28.1",
|
"eslint-plugin-import": "2.28.1",
|
||||||
|
|||||||
@@ -10,10 +10,10 @@
|
|||||||
"cac": "^6.7.14",
|
"cac": "^6.7.14",
|
||||||
"mongodb": "^5.9.0",
|
"mongodb": "^5.9.0",
|
||||||
"p-queue": "^7.4.1",
|
"p-queue": "^7.4.1",
|
||||||
"schemastery": "^3.12.0",
|
"schemastery": "^3.13.0",
|
||||||
"shell-quote": "^1.8.1",
|
"shell-quote": "^1.8.1",
|
||||||
"superagent": "^8.1.2",
|
"superagent": "^8.1.2",
|
||||||
"ws": "^8.14.1"
|
"ws": "^8.14.2"
|
||||||
},
|
},
|
||||||
"preferUnplugged": true,
|
"preferUnplugged": true,
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
"emoji-regex": "^10.2.1",
|
"emoji-regex": "^10.2.1",
|
||||||
"emojis-list": "2.1.0",
|
"emojis-list": "2.1.0",
|
||||||
"fs-extra": "^11.1.1",
|
"fs-extra": "^11.1.1",
|
||||||
"graphql": "^16.8.0",
|
"graphql": "^16.8.1",
|
||||||
"graphql-scalars": "^1.22.2",
|
"graphql-scalars": "^1.22.2",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"koa": "^2.14.2",
|
"koa": "^2.14.2",
|
||||||
@@ -41,20 +41,20 @@
|
|||||||
"mime-types": "^2.1.35",
|
"mime-types": "^2.1.35",
|
||||||
"moment-timezone": "^0.5.43",
|
"moment-timezone": "^0.5.43",
|
||||||
"mongodb": "^5.9.0",
|
"mongodb": "^5.9.0",
|
||||||
"nanoid": "^4.0.2",
|
"nanoid": "^5.0.1",
|
||||||
"nodemailer": "^6.9.5",
|
"nodemailer": "^6.9.5",
|
||||||
"notp": "^2.0.3",
|
"notp": "^2.0.3",
|
||||||
"p-queue": "^7.4.1",
|
"p-queue": "^7.4.1",
|
||||||
"path-to-regexp": "^6.2.1",
|
"path-to-regexp": "^6.2.1",
|
||||||
"require-resolve-hook": "^1.1.0",
|
"require-resolve-hook": "^1.1.0",
|
||||||
"saslprep": "^1.0.3",
|
"saslprep": "^1.0.3",
|
||||||
"schemastery": "^3.12.0",
|
"schemastery": "^3.13.0",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.5.4",
|
||||||
"serialize-javascript": "^6.0.1",
|
"serialize-javascript": "^6.0.1",
|
||||||
"superagent": "^8.1.2",
|
"superagent": "^8.1.2",
|
||||||
"tar": "^6.2.0",
|
"tar": "^6.2.0",
|
||||||
"thirty-two": "^1.0.2",
|
"thirty-two": "^1.0.2",
|
||||||
"ws": "^8.14.1"
|
"ws": "^8.14.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/adm-zip": "^0.4.34",
|
"@types/adm-zip": "^0.4.34",
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ class HomeSecurityHandler extends Handler {
|
|||||||
@requireSudo
|
@requireSudo
|
||||||
@param('type', Types.Range(['cross-platform', 'platform']))
|
@param('type', Types.Range(['cross-platform', 'platform']))
|
||||||
async postRegister(domainId: string, type: 'cross-platform' | 'platform') {
|
async postRegister(domainId: string, type: 'cross-platform' | 'platform') {
|
||||||
const options = generateRegistrationOptions({
|
const options = await generateRegistrationOptions({
|
||||||
rpName: system.get('server.name'),
|
rpName: system.get('server.name'),
|
||||||
rpID: this.request.hostname,
|
rpID: this.request.hostname,
|
||||||
userID: this.user._id.toString(),
|
userID: this.user._id.toString(),
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ class UserWebauthnHandler extends Handler {
|
|||||||
const udoc = this.user._id ? this.user : ((await user.getByEmail(domainId, uname)) || await user.getByUname(domainId, uname));
|
const udoc = this.user._id ? this.user : ((await user.getByEmail(domainId, uname)) || await user.getByUname(domainId, uname));
|
||||||
if (!udoc._id) throw new UserNotFoundError(uname || 'user');
|
if (!udoc._id) throw new UserNotFoundError(uname || 'user');
|
||||||
if (!udoc.authn) throw new AuthOperationError('authn', 'disabled');
|
if (!udoc.authn) throw new AuthOperationError('authn', 'disabled');
|
||||||
const options = generateAuthenticationOptions({
|
const options = await generateAuthenticationOptions({
|
||||||
allowCredentials: udoc._authenticators.map((authenticator) => ({
|
allowCredentials: udoc._authenticators.map((authenticator) => ({
|
||||||
id: authenticator.credentialID.buffer,
|
id: authenticator.credentialID.buffer,
|
||||||
type: 'public-key',
|
type: 'public-key',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { AttestationFormat } from '@simplewebauthn/server/dist/helpers/decodeAttestationObject';
|
import { AttestationFormat } from '@simplewebauthn/server/script/helpers/decodeAttestationObject';
|
||||||
import { AuthenticationExtensionsAuthenticatorOutputs } from '@simplewebauthn/server/dist/helpers/decodeAuthenticatorExtensions';
|
import { AuthenticationExtensionsAuthenticatorOutputs } from '@simplewebauthn/server/script/helpers/decodeAuthenticatorExtensions';
|
||||||
import { CredentialDeviceType } from '@simplewebauthn/typescript-types';
|
import { CredentialDeviceType } from '@simplewebauthn/typescript-types';
|
||||||
import type fs from 'fs';
|
import type fs from 'fs';
|
||||||
import type { Dictionary, NumericDictionary } from 'lodash';
|
import type { Dictionary, NumericDictionary } from 'lodash';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mariadb": "^3.2.0",
|
"mariadb": "^3.2.1",
|
||||||
"mongodb": "^5.9.0",
|
"mongodb": "^5.9.0",
|
||||||
"turndown": "^7.1.2",
|
"turndown": "^7.1.2",
|
||||||
"xml2js": "^0.6.2"
|
"xml2js": "^0.6.2"
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
"@types/markdown-it": "^13.0.1",
|
"@types/markdown-it": "^13.0.1",
|
||||||
"@types/pickadate": "^3.5.32",
|
"@types/pickadate": "^3.5.32",
|
||||||
"@types/qrcode": "^1.5.2",
|
"@types/qrcode": "^1.5.2",
|
||||||
"@types/react": "^18.2.21",
|
"@types/react": "^18.2.22",
|
||||||
"@types/react-dom": "^18.2.7",
|
"@types/react-dom": "^18.2.7",
|
||||||
"@types/redux-logger": "^3.0.9",
|
"@types/redux-logger": "^3.0.9",
|
||||||
"@types/serviceworker": "^0.0.73",
|
"@types/serviceworker": "^0.0.73",
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
"monaco-editor-nls": "^3.0.0",
|
"monaco-editor-nls": "^3.0.0",
|
||||||
"monaco-themes": "^0.4.4",
|
"monaco-themes": "^0.4.4",
|
||||||
"monaco-yaml": "^4.0.4",
|
"monaco-yaml": "^4.0.4",
|
||||||
"nanoid": "^4.0.2",
|
"nanoid": "^5.0.1",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"p-queue": "^7.4.1",
|
"p-queue": "^7.4.1",
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
"redux-promise-middleware": "^6.1.3",
|
"redux-promise-middleware": "^6.1.3",
|
||||||
"redux-thunk": "^2.4.2",
|
"redux-thunk": "^2.4.2",
|
||||||
"rupture": "^0.7.1",
|
"rupture": "^0.7.1",
|
||||||
"schemastery": "^3.12.0",
|
"schemastery": "^3.13.0",
|
||||||
"slideout": "^1.0.1",
|
"slideout": "^1.0.1",
|
||||||
"sticky-kit": "^1.1.3",
|
"sticky-kit": "^1.1.3",
|
||||||
"tether": "1.4.7",
|
"tether": "1.4.7",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"reggol": "^1.5.1",
|
"reggol": "^1.5.1",
|
||||||
"search-query-parser": "^1.6.0",
|
"search-query-parser": "^1.6.0",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "^0.5.21",
|
||||||
"systeminformation": "^5.21.5"
|
"systeminformation": "^5.21.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/fs-extra": "^11.0.2",
|
"@types/fs-extra": "^11.0.2",
|
||||||
|
|||||||
Reference in new issue
Block a user