at_onboarding_flutter 5.0.0 icon indicating copy to clipboard operation
at_onboarding_flutter: ^5.0.0 copied to clipboard

A Flutter plugin project for onboarding any @‎sign in @‎platform apps with ease. Provides a QRscanner option and an upload key file option to authenticate.

pub package gitHub license

Overview #

This at_onboarding_flutter package handles secure management of secret keys for authenticating an atsign as cryptographically secure replacement for usernames and passwords.

This open source package is written in Dart, supports Flutter and follows the atPlatform's decentralized, edge computing model with the following features:

  • Takes away the difficulty in implementing atsign authentication.
  • Generate and Supports free atsigns.
  • Supports multiple atSign onboarding.
  • Flexibility of either pair atSign with QRCode or Atkey file.
  • Reset/Sign out button.

We call giving people control of access to their data “flipping the internet” and you can learn more about how it works by reading this overview.

Get Started #

There are two options to get started using this package.

1. Clone it from GitHub #

Feel free to fork a copy the source from the GitHub repo. The example code contained there demonstrates the onboarding flow of an atSign.

git clone

2. Manually add the package to a project #

Instructions on how to manually add this package to you project can be found on here.



Add the following permissions to AndroidManifest.xml

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-feature android:name="" />
    <uses-feature android:name="" />
    <uses-feature android:name="" />

Also, the Android version support in app/build.gradle

compileSdkVersion 29

minSdkVersion 24
targetSdkVersion 29

Add the following permission string to info.plist

  <string>The camera is used to scan QR code to pair your device with your atSign</string>

Also, update the Podfile with the following lines of code:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        ## dart: PermissionGroup.calendar

        ## dart: PermissionGroup.reminders

        ## dart: PermissionGroup.contacts

        ## dart: PermissionGroup.microphone

        ## dart: PermissionGroup.speech

        ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]

        ## dart: PermissionGroup.notification

        ## dart: PermissionGroup.sensors

Go to your project folder, macOS/Runner/DebugProfile.entitlements

For release you need to open macOS/Runner/Release.entitlements

and add the following key:


3. Migration guide #

From 4.x.x to 5.x.x
  1. Replace Onboarding(...) with AtOnboarding.onboard(...)
  2. Move all config params (domain, atClientPreference, rootEnviroment, ...) into AtOnboardingConfig(...)
  3. The nextScreen and fistTimeAuthNextScreen has been removed and should be using AtOnboardingResult to determine which screen will be opened

Usage #

domainDomain can differ based on the environment you are using.Default the plugin connects to '' to perform onboarding.
atClientPreferenceThe atClientPreference to continue with the onboarding.
rootEnvironmentPermission to access the device's location is allowed even when the App is running in the background.
appAPIKeyAPI authentication key for getting free atsigns.
isSwitchingAtsignParam specifies whether this action is switching atsign or not. Default is false
atsignThe atsign name when change the primary atsign. Default is null
    onPressed: () async {
      final result = await AtOnboarding.onboard(
        context: context,
        config: AtOnboardingConfig(
          atClientPreference: atClientPreference,
          domain: AtEnv.rootDomain,
          rootEnvironment: AtEnv.rootEnvironment,
          appAPIKey: AtEnv.appApiKey,
      switch (result.status) {
        case AtOnboardingResultStatus.success:
          final atsign = result.atsign;
          // TODO: handle onboard successfully
        case AtOnboardingResultStatus.error:
          // TODO: handle onboard failure
        case AtOnboardingResultStatus.cancel:
          // TODO: handle user canceled onboard
    child: Text('Onboard my @sign'),

Steps to generate API key : #

  1. Open URL
  2. Login with valid credentials
  3. Click on My atSign on the dashboard
  4. Click on atSign for which you want to generate an API key
  5. Click on the manage button
  6. Click on Advance settings
  7. Click on "Generate New API key"

Open source usage and contributions #

This is open source code, so feel free to use it as is, suggest changes or enhancements or create your own version. See Contribution Guideline for detailed guidance on how to setup tools, tests and make a pull request.