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

パッケージ詳細v0.0.3

okta_oidc

Okta OIDC認証用のFlutterプラグインは、OktaサービスとOpenID Connectを使用して、安全なユーザーログイン、トークン管理、アイデンティティの統合を可能にします。

AndroidiOS
30日間ダウンロード
3220
いいね数
7
Pub ポイント
140

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

flutter pub add okta_oidc

パッケージ概要

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

okta_oidc パッケージは、Okta サービスと OpenID Connect を使用した安全な認証を容易にする Flutter プラグインです。Android および iOS プラットフォーム間でシームレスなユーザーのログイン、トークン管理、アイデンティティ統合を実現します。Flutter アプリに Okta の ID ソリューションを統合する開発者向けに設計されており、OAuth 2.0 フロー、トークンストレージ、セッション管理を安全に処理します。このプラグインにより、現代的な認証ワークフローの実装が簡素化され、業界標準への準拠が保証されます。特に、堅牢なアイデンティティ検証とアクセス制御を必要とするエンタープライズアプリケーションにおいて特に有用です。

用途

  • エンタープライズアプリ認証
  • シングルサインオン(SSO)統合
  • Oktaによるセキュアなユーザーログイン
  • トークンベースの承認
  • モバイルアプリID管理

主な機能

  • OpenID Connect のサポート
  • セキュアなトークン処理
  • クロスプラットフォーム(Android および iOS)
  • Okta サービス統合
  • セッション管理

適している対象

  • エンタープライズモバイルアプリケーション
  • SSOを必要とするアプリ
  • Okta ID サービスを使用する開発者
  • 認証重視アプリ
  • セキュアなログインが必要なFlutterアプリ

注意事項

  • Oktaアカウントのセットアップが必要です
  • 適切なリダイレクトURIの設定が必要です
  • プラットフォーム固有のOAuth処理に依存しています
  • Okta OIDCプロバイダーに限定
  • 追加のバックエンド検証が必要になる場合があります

元の README

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

okta_oidc

okta_oidc provide simple authentication integration in mobile apps.

Sample

Check out sample app Okta oidc

Installation

To add okta_oidc to your flutter application install instructions. Below are some Android and iOS specifics that are required for the okta_oidc to work correctly.

Android
  1. Make sure you set the minSdkVersion 21 or above in your "android/app/build.gradle"
android {
  minSdkVersion 21

  ...
}
  1. Similar to the sample app, you must add a redirect scheme to receive sign in results from the web browser. To do this, you must define a gradle manifest placeholder in your app's build.gradle:
manifestPlaceholders = [
    appAuthRedirectScheme: 'Add redirect schema here...'
  ]
iOS
  1. Make sure the minimum deployment target in Podfile set to 13 or above
platform :ios, '13.0'

Add `assets/okta_config.json` file in root of your project with below data.
{
  "client_id": "",
  "redirect_uri": "",
  "end_session_redirect_uri": "",
  "scopes": [],
  "discovery_uri": ""
}

Example

Available Methods
initOkta

This method will initialize okta with config file or map data.

code
OktaOidc oktaOidc = OktaOidc();

...
...

 Future<void> initOkta() async {
    final String response =
        await rootBundle.loadString('assets/okta_config.json');
    Map<String, dynamic>? oktaConfig = jsonDecode(response);
    oktaOidc.initOkta(oktaConfig);
  }
login

This method will redirect you to okta sign in page and return response or error.

code
 oktaOidc.login().then((value) {
                }).catchError((onError) {
                });
socialLogin

This method can be used for social login like linked in, google and apple sign in. Need to provide idp and idp-scope for social sign in.

code
  oktaOidc.socialLogin({
      "idp": "Add idp here...",
      "idp-scope": "Add scope here..."
    }).then((value) {
    });
getAccessToken

This method will return access token if logged in if token is expired it will refresh the token.

code
  oktaOidc.getAccessToken();
getUserProfile

This method returns user profile data.

code
  oktaOidc.getUserProfile();
logout

This method clears the user session.

code
  oktaOidc.logout();

カテゴリー

依存関係

依存関係一覧 1 件

  • plugin_platform_interface^2.0.2

ソースリポジトリ

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

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