siarashield_flutter 0.0.9 copy "siarashield_flutter: ^0.0.9" to clipboard
siarashield_flutter: ^0.0.9 copied to clipboard

siarashield_flutter is a package that enables authentication using SiaraShield in Flutter applications.

SiaraShield Flutter #

siarashield_flutter is a package that enables authentication using SiaraShield in Flutter applications.

Getting Started #

To use this package, add siarashield_flutter as a dependency in your pubspec.yaml file.

Installation #

Add the following line to your pubspec.yaml:

dependencies:
  siarashield_flutter: latest_version

Then, run:

flutter pub get

Usage #

To authenticate using SiaraShield, you need a MasterUrlId, which can be obtained from the SiaraShield Portal after registering your package name.

Minimal Example #

import 'package:siarashield_flutter/siarashield_flutter.dart';

CyberSiaraWidget(
  loginTap: (bool isSuccess) {
    if (isSuccess) {
      // Handle successful authentication
      print("Authentication Successful: \$isSuccess");
    } else {
      // Handle authentication failure
      print("Authentication Failed");
    }
  },
  cyberSiaraModel: CyberSiaraModel(
    masterUrlId: 'TEST-CYBERSIARA', // Master URL ID
    requestUrl: 'com.app.testapp', // Package name
    privateKey: 'TEST-CYBERSIARA', // Private Key
  ),
),

Parameters #

Parameter Type Description
loginTap Function Callback function that returns true on successful authentication and false otherwise.
masterUrlId String The Master URL ID obtained from SiaraShield Portal.
requestUrl String The package name registered with SiaraShield.
privateKey String The private key used for authentication.

Additional Information #

For more details, visit the SiaraShield Portal or refer to the official documentation.


Note: Ensure that you handle authentication responses securely and follow best practices for storing sensitive credentials in your application.

1
likes
150
points
47
downloads

Publisher

unverified uploader

Weekly Downloads

siarashield_flutter is a package that enables authentication using SiaraShield in Flutter applications.

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

cached_network_image, connectivity_plus, device_info_plus, dio, flutter, flutter_udid, flutter_web_plugins, fluttertoast, get, permission_handler, plugin_platform_interface, public_ip_address, shared_preferences

More

Packages that depend on siarashield_flutter