Skip to content

Commit

Permalink
Merge pull request #661 from atsign-foundation/2074-apkam-keys-expiry…
Browse files Browse the repository at this point in the history
…-at_auth-changes

feat: Add apkamKeysExpiryDuration in enrollment_request.dart
  • Loading branch information
sitaram-kalluri authored Sep 13, 2024
2 parents a254676 + 883deba commit bfe7201
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions packages/at_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions packages/at_auth/lib/src/enroll/at_enrollment_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion packages/at_auth/lib/src/enroll/enrollment_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ class EnrollmentRequest extends BaseEnrollmentRequest {
Map<String, String> namespaces;
String? encryptedAPKAMSymmetricKey;
String otp;
Duration? apkamKeysExpiryDuration;

EnrollmentRequest(
{required super.appName,
required super.deviceName,
super.apkamPublicKey,
required this.otp,
required this.namespaces,
this.encryptedAPKAMSymmetricKey});
this.encryptedAPKAMSymmetricKey,
this.apkamKeysExpiryDuration});
}
8 changes: 4 additions & 4 deletions packages/at_auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -9,10 +9,10 @@ environment:

dependencies:
args: ^2.4.1
at_commons: ^4.0.11
at_lookup: ^3.0.47
at_commons: ^4.1.2
at_lookup: ^3.0.48
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
Expand Down

0 comments on commit bfe7201

Please sign in to comment.