パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.0.3

uaepass_api

認証API(ログイン、ログアウト、ユーザープロフィールの取得)用のFlutter UAE PASSパッケージ。

AndroidiOS
30日間ダウンロード
121
いいね数
11
Pub ポイント
150

パッケージをインストール

flutter pub add uaepass_api

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

uaepass_api パッケージは、アラブ首長国連邦(UAE)PASS認証システムとのシームレスな統合を目的としたFlutterプラグインであり、AndroidおよびiOSアプリケーションでログイン、ログアウト、ユーザープロフィールの取得機能を実装できるようにします。このパッケージは、UAE PASSのデジタルアイデンティティフレームワークを利用することで、政府サービスへの安全なアクセスを簡素化します。認証フローとトークン管理を処理し、UAEのデジタルアイデンティティ基準に準拠しています。信頼できるユーザー認証が必要な公共部門および企業向けアプリに最適です。

用途

  • 政府サービスアプリ
  • エンタープライズID統合
  • セキュアなユーザーログインシステム
  • デジタルオンボーディングワークフロー
  • モバイルアプリ認証

主な機能

  • UAE PASS ログインサポート
  • ユーザー プロファイルの取得
  • セキュアなトークン処理
  • クロスプラットフォーム互換性(AndroidおよびiOS)
  • Flutterとの簡単な統合

適している対象

  • 公共セクター向けアプリケーション
  • 政府のデジタルイニシアチブ
  • セキュアなモバイルアプリ
  • アラブ首長国連邦のユーザーをターゲットにする開発者
  • eID認証を必要とするアプリ

注意事項

  • UAE PASSアカウントのセットアップが必要です
  • 外部APIの利用可能性に依存します
  • 本番環境用に適切な設定が必要です
  • アラブ首長国連邦に拠点を置くサービスに限定
  • 追加のコンプライアンスチェックが必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

uaepass_api

Un-official UAE PASS Flutter package for authentication capability.

Why uaepass_api?

  • 🚀 Easy to use
  • ⚡ Fullscreen window
  • ❤ Supports app installed scenario
  • ❤ Supports app not installed scenario
  • 🛡️ Null safety

Getting Started

  • Add the plugin to your pubspec.yaml file
uaepass_api: ^1.0.3
  • Run flutter pub get
flutter pub get
  • Import the package
import 'package:uaepass_api/uaepass_api.dart';

UaePassAPI uaePassAPI =UaePassAPI(
    clientId: "<clientId>",
    redirectUri: "<redirectUri>",
    clientSecrete: "<clientSecrete>",
    appScheme: "<Your App Scheme>",
    language: "en",
    isProduction: false);
  • Get user code
    String? code =  await uaePassAPI.signIn(context);
  • Get user AccessToken
    String? token =  await uaePassAPI.getAccessToken(code);
  • Get user info
    String? token =  await uaePassAPI.getUserProfile(token);
  • Logout
  await uaePassAPI.logout(context);

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>You App URL Scheme here</string>
      <key>CFBundleURLSchemes</key>
      <array>
        <string>You App URL Scheme here</string>
      </array>
    </dict>
  </array>

Android Setup

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

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

            android:launchMode="singleTask"

            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            .....

            </activity>

  • Set up the intent filter in your AndroidManifest.xml file
            <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="<Your App Scheme>" />

                <data
                    android:host="failure"
                    android:scheme="<Your App Scheme>" />

            </intent-filter>

Note: incase kotlin error, add the following to your build.gradle file

buildscript {
    // update this line
    ext.kotlin_version = '1.7.10'

Read Common issues

カテゴリー

依存関係

依存関係一覧 4 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。