Skip to content

Commit

Permalink
fix: analyzer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
srieteja committed Jul 5, 2023
1 parent 8c78cd2 commit bc88c59
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions packages/at_onboarding_cli/example/get_cram_key_example.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:at_onboarding_cli/src/util/onboarding_util.dart';
import 'package:at_onboarding_cli/src/register_cli/registrar_api_util.dart';

Future<void> main() async {
await OnboardingUtil().requestAuthenticationOtp(
await RegistrarApiUtil().requestAuthenticationOtp(
'your atsign here'); // requires a registered atsign
String cramKey = await OnboardingUtil().getCramKey('your atsign here',
String cramKey = await RegistrarApiUtil().getCramKey('your atsign here',
'verification code'); // verification code received on the registered email
print('Your cram key is: $cramKey');
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'dart:io';

import 'package:at_chops/at_chops.dart';
import 'package:at_client/at_client.dart';
import 'package:at_onboarding_cli/src/onboard/OnboardingCalls.dart';
import 'package:at_onboarding_cli/src/onboard/onboarding_tasks.dart';
import 'package:at_onboarding_cli/src/util/at_onboarding_exceptions.dart';
import 'package:at_server_status/at_server_status.dart';
import 'package:at_utils/at_utils.dart';
Expand Down Expand Up @@ -269,11 +269,11 @@ class AtOnboardingServiceImpl implements AtOnboardingService {
logger
.finer('PkamPrivateKey persist to localSecondary: status $response');
}
// response = await _atClient?.getLocalSecondary()?.putValue(
// '$AT_ENCRYPTION_PUBLIC_KEY$_atSign',
// atKeysMap[AuthKeyType.encryptionPublicKey]!);
// logger.finer(
// 'EncryptionPublicKey persist to localSecondary: status $response');
response = await _atClient?.getLocalSecondary()?.putValue(
'$AT_ENCRYPTION_PUBLIC_KEY$_atSign',
atKeysMap[AuthKeyType.encryptionPublicKey]!);
logger.finer(
'EncryptionPublicKey persist to localSecondary: status $response');
response = await _atClient?.getLocalSecondary()?.putValue(
AT_ENCRYPTION_PRIVATE_KEY,
atKeysMap[AuthKeyType.encryptionPrivateKey]!);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ class AtOnboardingPreference extends AtClientPreference {
/// specify path of .atKeysFile containing encryption keys
String? atKeysFilePath;

/// specify path of qr code containing cram secret
@Deprecated('qr_code based cram authentication not supported anymore')
String? qrCodePath;

/// signing algorithm to use for pkam authentication
@override
SigningAlgoType signingAlgoType = SigningAlgoType.rsa2048;

/// hashing algorithm to use for pkam authentication
@override
HashingAlgoType hashingAlgoType = HashingAlgoType.sha256;

PkamAuthMode authMode = PkamAuthMode.keysFile;
Expand Down

0 comments on commit bc88c59

Please sign in to comment.