diff --git a/packages/at_auth/CHANGELOG.md b/packages/at_auth/CHANGELOG.md index ed4d564f..35d8d532 100644 --- a/packages/at_auth/CHANGELOG.md +++ b/packages/at_auth/CHANGELOG.md @@ -1,3 +1,5 @@ +## 2.0.6 +- fix: Add "apkamKeysExpiryDuration" to "EnrollmentRequest" to support auto expiry of APKAM keys ## 2.0.5 - fix: set atChops in atLookup before pkam auth in AtAuthImpl - build[deps]: Upgraded the following packages: 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 99b3baa7..05dbf3b4 100644 --- a/packages/at_auth/lib/src/enroll/at_enrollment_impl.dart +++ b/packages/at_auth/lib/src/enroll/at_enrollment_impl.dart @@ -77,6 +77,8 @@ class AtEnrollmentImpl implements AtEnrollmentBase { .encrypt(apkamSymmetricKey.key); enrollVerbBuilder.otp = enrollmentRequest.otp; enrollVerbBuilder.namespaces = enrollmentRequest.namespaces; + enrollVerbBuilder.apkamKeysExpiryDuration = + enrollmentRequest.apkamKeysExpiryDuration; String? serverResponse = await _executeEnrollCommand(enrollVerbBuilder, atLookUp); diff --git a/packages/at_auth/lib/src/enroll/enrollment_request.dart b/packages/at_auth/lib/src/enroll/enrollment_request.dart index 4b1939bc..c6b3b1f4 100644 --- a/packages/at_auth/lib/src/enroll/enrollment_request.dart +++ b/packages/at_auth/lib/src/enroll/enrollment_request.dart @@ -13,6 +13,7 @@ class EnrollmentRequest extends BaseEnrollmentRequest { Map namespaces; String? encryptedAPKAMSymmetricKey; String otp; + Duration? apkamKeysExpiryDuration; EnrollmentRequest( {required super.appName, @@ -20,5 +21,6 @@ class EnrollmentRequest extends BaseEnrollmentRequest { super.apkamPublicKey, required this.otp, required this.namespaces, - this.encryptedAPKAMSymmetricKey}); + this.encryptedAPKAMSymmetricKey, + this.apkamKeysExpiryDuration}); } diff --git a/packages/at_auth/pubspec.yaml b/packages/at_auth/pubspec.yaml index 61e0c535..30f6b519 100644 --- a/packages/at_auth/pubspec.yaml +++ b/packages/at_auth/pubspec.yaml @@ -1,6 +1,6 @@ name: at_auth description: Package that implements common logic for onboarding/authenticating an atsign to a secondary server -version: 2.0.5 +version: 2.0.6 homepage: https://atsign.com/ repository: https://github.com/atsign-foundation/at_libraries @@ -9,10 +9,10 @@ environment: dependencies: args: ^2.4.1 - at_commons: ^4.0.11 + at_commons: ^4.1.2 at_lookup: ^3.0.47 at_chops: ^2.0.0 - at_utils: ^3.0.16 + at_utils: ^3.0.18 meta: ^1.8.0 at_demo_data: ^1.0.3 crypton: ^2.2.1