Pakete, Repositories und App-Kategorien suchen

Paketdetailsv1.1.1

flutter_uae_pass

Ein UAE Pass-Plugin für Flutter mit Unterstützung für iOS, Android und Web-Plattformen. Dies ist eine inoffizielle Version.

AndroidiOSWeb
30-Tage-Downloads
108
Likes
17
Pub-Punkte
130

Paket installieren

flutter pub add flutter_uae_pass

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein Flutter-Plugin, das die Integration mit UAE Pass für die Authentifizierung auf Android, iOS und Web-Plattformen ermöglicht. Diese nicht-offizielle Implementierung erlaubt Benutzern die Anmeldung mit ihren UAE Pass-Anmeldeinformationen und vereinfacht den Zugriff auf staatliche und private Dienstleistungen in den Vereinigten Arabischen Emiraten. Das Plugin unterstützt sichere Token-Retrieval und verwaltet plattformspezifische Konfigurationen, wodurch Entwicklern die Implementierung vertrauenswürdiger Identitätsverifizierung in ihren Apps erleichtert wird. Es ist für Anwendungen konzipiert, die der Einhaltung der digitalen Identitätsstandards der Vereinigten Arabischen Emirate entsprechen müssen.

Anwendungsfälle

  • regierungsnahe Dienstleistungs-Apps aus den Vereinigten Arabischen Emiraten
  • Privatsektor-Apps, die eine Identitätsüberprüfung erfordern
  • Digitale Onboarding-Workflows
  • Sichere Anmeldung für Bewohner der VAE
  • Web- und Mobile-App-Authentifizierung

Hauptmerkmale

  • Plattformübergreifende Unterstützung (Android, iOS, Web)
  • Nicht offizielle, aber funktionale Implementierung
  • Tokenbasierte Authentifizierung
  • Unterstützt die Identitätsprüfung von UAE Pass
  • Einfache Integration über pub.dev

Geeignet für

  • Entwickler, die UAE-fokussierte Anwendungen erstellen
  • Apps, die kompatible digitale Identitätslösungen benötigen
  • Projekte, die sichere Benutzerauthentifizierung erfordern
  • Startups, die sich am u.a. Markt orientieren
  • Frontend-Teams, die Authentifizierung von Drittanbietern integrieren

Hinweise

  • Nicht offiziell von UAE Pass unterstützt
  • Könnte Aktualisierungen für neue UAE Pass-API-Änderungen erfordern
  • Eingeschränkte Dokumentation im Vergleich zu offiziellen Plugins
  • Möglicher Bedarf an zusätzlicher Backend-Validierung
  • Plattformspezifische Einrichtungsschritte können variieren

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

flutter_uae_pass

Un-official UAE Pass Flutter plugin for iOS, Android, and Web.

Demo

Platform Screenshots

Android iOS Web
Android iOS Web

Platform Support

Platform Supported Implementation
iOS ✅ WKWebView with full screen modal
Android ✅ Custom WebView Activity
Web ✅ OAuth2 popup authentication

Getting Started

  • Add the plugin to your pubspec.yaml file
flutter_uae_pass: ^1.0.6
  • Run flutter pub get
flutter pub get
  • Import the package
import 'package:flutter_uae_pass/flutter_uae_pass.dart';
final _uaePassPlugin = UaePass();


  • Initialize the plugin - Sandbox
  await _uaePassPlugin.setUpSandbox();
  • Initialize the plugin - Production
    await _uaePassPlugin.setUpEnvironment(
      clientId: "<clientId>",
      clientSecret: "<clientSecret>",
      urlScheme: "myappscheme",
      redirectUri: "<redirectUri>",
      isProduction: true,
      language : "en",
    );

Scopes are as follows

  • urn:uae:digitalid:profile:general
  • urn:uae:digitalid:profile

Main features

  • signIn()
  • getAccessToken(String authCode)
  • getProfile(String token)
  • signOut()

Call the authenticate method

  String? authCode = await _uaePassPlugin.signIn();

To get access token

  String? accessToken = await _uaePassPlugin.getAccessToken(authCode);

To get public profile data

you can fetch this information from profile

  • idn
  • email
  • firstnameAR
  • firstnameEN
  • fullnameEN
  • gender
  • lastnameAR
  • lastnameEN
  • mobile
  • nationalityAR
  • nationalityEN
  • sub
  • userType
  • uuid
  ProfileData? profileData = await _uaePassPlugin.getProfile(accessToken);

iOS Setup

  • Add the following to your Info.plist file

		<key>LSApplicationQueriesSchemes</key>
		<array>
			<string>uaepass</string>
			<string>uaepassqa</string>
			<string>uaepassdev</string>
			<string>uaepassstg</string>
		</array>
		<key>CFBundleURLTypes</key>
		<array>
			<dict>
				<key>CFBundleTypeRole</key>
				<string>Editor</string>
				<key>CFBundleURLName</key>
				<string>myappscheme</string>
				<key>CFBundleURLSchemes</key>
				<array>
					<string>myappscheme</string>
				</array>
			</dict>
		</array>

Android Setup

  • Update android:launchMode="singleTask" the AndroidManifest.xml file

 <activity
            android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTask"
            .....

            </activity>

  • Set up the queries in your AndroidManifest.xml file (To make our app open UAE Pass App)
    <queries>
        <package android:name="ae.uaepass.mainapp" />
        <package android:name="ae.uaepass.mainapp.qa" />
        <package android:name="ae.uaepass.mainapp.stg" />
    </queries>

  • Set up the intent filter in your AndroidManifest.xml file (To Reopen our application after uaepass done)
            <intent-filter >
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />


                <data
                    android:host="success"
                    android:scheme="myappscheme" />

                <data
                    android:host="failure"
                    android:scheme="myappscheme" />

            </intent-filter>

Web Setup

For web applications, no additional configuration is required! The plugin automatically uses a popup-based OAuth2 flow that works in all modern browsers.

Web-Specific Features:
  • Popup Authentication: Opens UAE Pass login in a secure popup window
  • Automatic Redirect Handling: Automatically detects and processes the authorization callback
  • CORS Compliance: Uses proper HTTP requests for token exchange and profile retrieval
  • Session Management: Handles cookies and localStorage for proper logout functionality
Browser Requirements:
  • Modern browsers with popup support (Chrome, Firefox, Safari, Edge)
  • JavaScript enabled
  • Cookies enabled for proper session management
Production Considerations:
  • Ensure your redirect URI is properly configured in the UAE Pass dashboard
  • For production, make sure your domain is whitelisted in UAE Pass configuration
  • Test popup blockers - inform users to allow popups for your domain if needed

References

Thanks for Faisal for this repo uae_pass_flutter i improve the code and create this package

Kategorien

Abhängigkeiten

Abhängigkeiten 1 Einträge

  • plugin_platform_interface^2.0.2

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.