at_auth 2.0.8 copy "at_auth: ^2.0.8" to clipboard
at_auth: ^2.0.8 copied to clipboard

Package that implements common logic for onboarding/authenticating an atsign to a secondary server

Package for onboarding and authentication to an atsign's secondary server

Features #

  • onboard logic - cram authentication,pkam/encryption/apkam key pair generation, initial pkam authentication
  • authentication - read keys from .atKeys file, pkam authentication

Getting started #

Usage #

Onboard an atsign

final atAuth = AtAuthImpl();
final atOnboardingRequest = AtOnboardingRequest('@alice')
  ..rootDomain = 'vip.ve.atsign.zone'
  ..enableEnrollment = true
  ..appName = 'wavi'
  ..deviceName = 'iphone';
final atOnboardingResponse = await atAuth.onboard(atOnboardingRequest, <cram_secret>);

Authenticate an atsign

final atAuth = AtAuthImpl();
final atAuthRequest = AtAuthRequest('@alice')
    ..rootDomain = 'vip.ve.atsign.zone'
    ..atKeysFilePath = args[1];
final atAuthResponse = await atAuth.authenticate(atAuthRequest);

Example #

For examples please refer to examples

1
likes
0
points
5.15k
downloads

Publisher

verified publisheratsign.org

Weekly Downloads

Package that implements common logic for onboarding/authenticating an atsign to a secondary server

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, at_chops, at_commons, at_demo_data, at_lookup, at_utils, crypton, meta

More

Packages that depend on at_auth