From 7aad63e94d4c0f94eb48c39610308695d508ca81 Mon Sep 17 00:00:00 2001 From: Murali Date: Wed, 18 Dec 2024 17:23:33 +0530 Subject: [PATCH] fix: at_auth revert changes --- packages/at_auth/lib/src/at_auth_impl.dart | 2 +- packages/at_auth/lib/src/enroll/at_enrollment_impl.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/at_auth/lib/src/at_auth_impl.dart b/packages/at_auth/lib/src/at_auth_impl.dart index 0df0b46f..913e5ee2 100644 --- a/packages/at_auth/lib/src/at_auth_impl.dart +++ b/packages/at_auth/lib/src/at_auth_impl.dart @@ -51,7 +51,7 @@ class AtAuthImpl implements AtAuth { if (atAuthRequest.atKeysFilePath != null) { atAuthKeys = await _prepareAtAuthKeysFromFilePath(atAuthRequest); } else if (atAuthRequest.encryptedKeysMap != null) { - atAuthKeys = await _decryptAtKeysWithSelfEncKey( + atAuthKeys = _decryptAtKeysWithSelfEncKey( atAuthRequest.encryptedKeysMap!, PkamAuthMode.keysFile); } else { atAuthKeys = atAuthRequest.atAuthKeys; diff --git a/packages/at_auth/lib/src/enroll/at_enrollment_impl.dart b/packages/at_auth/lib/src/enroll/at_enrollment_impl.dart index 2ecd6931..05dbf3b4 100644 --- a/packages/at_auth/lib/src/enroll/at_enrollment_impl.dart +++ b/packages/at_auth/lib/src/enroll/at_enrollment_impl.dart @@ -124,14 +124,14 @@ class AtEnrollmentImpl implements AtEnrollmentBase { EncryptionKeyType.aes256, keyName: 'apkamSymmetricKey', iv: AtChopsUtil.generateIVLegacy()) - ?.result; + .result; // Fetch the selfEncryptionKey from the atChops and encrypt with APKAM Symmetric key. String encryptedDefaultSelfEncryptionKey = atLookUp.atChops ?.encryptString(atLookUp.atChops!.atChopsKeys.selfEncryptionKey!.key, EncryptionKeyType.aes256, keyName: 'apkamSymmetricKey', iv: AtChopsUtil.generateIVLegacy()) - ?.result; + .result; String command = 'enroll:approve:${jsonEncode({ 'enrollmentId': enrollmentRequestDecision.enrollmentId,