updated event controllers and service event mtach tested
This commit is contained in:
@@ -4,8 +4,8 @@ import {
|
||||
Injectable,
|
||||
ForbiddenException,
|
||||
} from '@nestjs/common';
|
||||
import { RedisHandlers } from '@/src/utils/auth/redisHandlers';
|
||||
import { UrlHandler } from '@/src/utils/auth/urlHandler';
|
||||
import { RedisHandlers } from '@/src/utils/store/redisHandlers';
|
||||
import { UrlHandler } from '@/src/utils/navigator/urlHandler';
|
||||
|
||||
@Injectable()
|
||||
export class AuthControlGuard implements CanActivate {
|
||||
@@ -14,7 +14,6 @@ export class AuthControlGuard implements CanActivate {
|
||||
async canActivate(context: ExecutionContext): Promise<boolean> {
|
||||
const req = context.switchToHttp().getRequest();
|
||||
const accessToken = this.cacheService.mergeLoginKey(req);
|
||||
// console.log('AuthControlGuard', accessToken);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -34,7 +33,6 @@ export class EndpointControlGuard implements CanActivate {
|
||||
const driveToken = await this.urlHandler.getSecureUrlToken(keyUrl);
|
||||
const accessObject = await this.cacheService.getSelectFromRedis(req);
|
||||
req.driveToken = `${driveToken}:${accessObject?.value.functionsRetriever}`;
|
||||
console.log('EndpointControlGuard driveToken: ', driveToken);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user