at_client_cli 1.0.0
at_client_cli: ^1.0.0 copied to clipboard
The Atsign Protocol for Dart command-line programs, daemons and servers - CLIBase, and the at_activate and at_register tools.
List of steps to run the examples for checking apkam enrollment
- Onboard an atsign which will get the privilege to approve/deny enrollments:
- run:
dart example/bin/onboard.dart -a <atsign> -c <CRAM secret> -k <path_store_keys_file> - e.g.
dart example/bin/onboard.dart -a @alice -k /home/alice/.atsign/@alice_wavikey.atKeys -c b26455a907582760ebf35bc4847de549bc41c24b25c8b1c58d5964f7b4f8a43bc55b0e9a601c9a9657d9a8b8bbc32f88b4e38ffaca03c8710ebae1b14ca9f364 - If you do not already have the CRAM Secret for your atsign, run
at_activate onboard -a <@atsign>instead: the registrar emails a verification code, and at_activate fetches the secret with it
- run:
- Authenticate using the onboarded atsign:
- run:
dart example/bin/apkam_examples/apkam_authenticate.dart -a <atsign> -k <path_of_keys_file_from_#1> - e.g.
dart example/bin/apkam_examples/apkam_authenticate.dart -a @alice -k /home/alice/.atsign/@alice_wavikey.atKeys
- run:
- Run client to approve enrollments:
- run:
dart example/bin/apkam_examples/enroll_app_listen.dart -a <atsign> -k <path_of_keys_file_from_#1> - e.g
dart example/bin/apkam_examples/enroll_app_listen.dart -a @alice -k /home/alice/.atsign/@alice_wavikey.atKeys
- run:
- Get OTP for enrollment
- run:
at_activate otp -a <atsign> -k <path_of_keys_file_from_#1>, which prints the OTP - e.g.
at_activate otp -a @alice -k /home/alice/.atsign/@alice_wavikey.atKeys - Add
-r <host:port>for an atSign outside the production atDirectory
- run:
- Request enrollment
- 5.1 Submit enrollment from new client:
- run:
dart example/bin/apkam_examples/apkam_enroll.dart -a <atsign> -k <path_to_store_keys_file> -o <otp> - Note: this path has to be different from the path provided in Step#1 as this is a new file
- e.g.
dart example/bin/apkam_examples/apkam_enroll.dart -a @alice -k /home/alice/.atsign/@alice_buzzkey.atKeys -o DY4UT4
- run:
- 5.2 Approve the enrollment from the client from #3
- To approve the enrollment type
yesand then Enter
- To approve the enrollment type
- 5.3 Enrollment should be successful and atKeys file stored in the path specified
- 5.1 Submit enrollment from new client:
- Authenticate using the enrolled keys file
- 6.1 run:
dart example/bin/apkam_examples/apkam_authenticate.dart -a <atsign> -k <path_of_keys_file_from_#5.1> - Note: this keys file is different from the keys file generated in Step#1. This new file only has access to the data that is allowed to access from this enrollment_id
- 6.1 run: