flutter_loui

Package for Loui implementation on flutter.

  • 🚀 Support iOS and Android!

Usage

This component only needs 2 parameters: authConfig and activateDeviceConfig. You can check more information about this parameters below.

//...
AuthConfig authConfig = AuthConfig();
ActivateDeviceConfig activateDeviceConfig = ActivateDeviceConfig();
//...
@override
Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(

        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            TotpLoui(
                activateDeviceConfig: activateDeviceConfig,
                authConfig: authConfig)
          ],
        ),
      ), 
    );
  }

Props

TotpLoui

Prop Name Type Default Description
authConfig authProps required Auth configuration for loui
activateDeviceConfig activateDeviceProps required Device auth configuration for loui

AuthProps

Prop Name Type Default Description
client_id string required Name defined for the application
client_secret string required Generated secret token for the application
scope string required Name of the service account
username string required User name of registration on Loui
password string required Password of registration on Loui
grant_type string password Grant type, normally ‘password’

ActivateDeviceProps

Prop Name Type Default Description
uid string - UID of user. Optional
username string required User name of the current user
countryCode string required Telephone country code of the user. For example, +57 for Colombia
phoneNumber string required User's phone number
email string required User email
reference1 string - First user reference
reference2 string - Second user reference
reference3 string - Third user reference