Explorar el Código

Update paths

GitOrigin-RevId: 5bc9bccf2cd10631cb88412f426a8e3c73c9f689
Andrew Rumble hace 11 meses
padre
commit
f5eb8e9ba4

+ 1 - 1
services/web/app/src/Features/Authentication/AuthenticationController.mjs

@@ -394,7 +394,7 @@ const AuthenticationController = {
     const middleware = async (req, res, next) => {
       const Oauth2Server = (
         await import(
-          '../../../../modules/oauth2-server/app/src/Oauth2Server.js'
+          '../../../../modules/oauth2-server/app/src/Oauth2Server.mjs'
         )
       ).default
 

+ 1 - 1
services/web/scripts/oauth/backfill_hashed_secrets.mjs

@@ -2,7 +2,7 @@ import {
   db,
   READ_PREFERENCE_SECONDARY,
 } from '../../app/src/infrastructure/mongodb.js'
-import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.js'
+import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.mjs'
 import { scriptRunner } from '../lib/ScriptRunner.mjs'
 
 async function main() {

+ 1 - 1
services/web/scripts/oauth/create_token.mjs

@@ -1,6 +1,6 @@
 import minimist from 'minimist'
 import { db } from '../../app/src/infrastructure/mongodb.js'
-import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.js'
+import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.mjs'
 import { scriptRunner } from '../lib/ScriptRunner.mjs'
 
 async function main() {

+ 1 - 1
services/web/scripts/oauth/register_client.mjs

@@ -1,7 +1,7 @@
 import minimist from 'minimist'
 import mongodb from 'mongodb-legacy'
 import { db } from '../../app/src/infrastructure/mongodb.js'
-import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.js'
+import { hashSecret } from '../../modules/oauth2-server/app/src/SecretsHelper.mjs'
 import { scriptRunner } from '../lib/ScriptRunner.mjs'
 
 const { ObjectId } = mongodb