atsign-foundation / at_client_sdk

The Dart implementation of atSDK used for implementing Atsign's technology into other software
https://pub.dev/publishers/atsign.org/packages
BSD 3-Clause "New" or "Revised" License
1.47k stars 32 forks source link

Add unit tests to verify enrollment authorization check during put and get operation in at_client #1335

Closed sitaram-kalluri closed 3 weeks ago

sitaram-kalluri commented 3 weeks ago

Is your feature request related to a problem? Please describe.

When an atSign undergoes authentication via the APKAM, the system verifies the key's namespace to ensure it's authorized for enrollment during both "put" and "get" operations. In the process of enrollment authorization check the following key-types are excluded : Reserved Keys, cached shared key and cached public key.

Currently there no unit tests in place to validate this behavior.

Describe the solution you'd like

Add unit tests to assert the enrollment authorization changes and the mentioned key types should be excluded from the enrollment authorization check.