Kaynağa Gözat

chore: Fix dev server plugin examples

Michael Bromley 3 yıl önce
ebeveyn
işleme
1bacfd1474

+ 1 - 1
packages/dev-server/test-plugins/google-auth/google-authentication-strategy.ts

@@ -46,7 +46,7 @@ export class GoogleAuthenticationStrategy implements AuthenticationStrategy<Goog
         if (!payload || !payload.email) {
             return false;
         }
-        const user = await this.externalAuthenticationService.findCustomerUser(this.name, payload.sub);
+        const user = await this.externalAuthenticationService.findCustomerUser(ctx, this.name, payload.sub);
         if (user) {
             return user;
         }

+ 5 - 1
packages/dev-server/test-plugins/keycloak-auth/keycloak-authentication-strategy.ts

@@ -66,7 +66,11 @@ export class KeycloakAuthenticationStrategy implements AuthenticationStrategy<Ke
         if (!userInfo) {
             return false;
         }
-        const user = await this.externalAuthenticationService.findAdministratorUser(this.name, userInfo.sub);
+        const user = await this.externalAuthenticationService.findAdministratorUser(
+            ctx,
+            this.name,
+            userInfo.sub,
+        );
         if (user) {
             return user;
         }