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

パッケージ詳細v0.0.9

auth0_web_flutter

Web Flutter アプリに Auth0 を簡単に統合するための Flutter パッケージ。

30日間ダウンロード
295
いいね数
3
Pub ポイント
60

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

flutter pub add auth0_web_flutter

パッケージ概要

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

WebベースのFlutterアプリケーションへのAuth0認証の統合を簡素化することを目的としたFlutterパッケージです。ウェブ環境におけるユーザーのログイン・ログアウトおよびトークン管理をスムーズに行うためのインターフェースを提供します。Auth0の強力なIDプラットフォームを利用することで、最小限の設定で安全かつスケーラブルな認証を実現します。ブラウザベースのワークフローとOAuth2プロトコルとの互換性を確保するよう、Webプラットフォームに特化して設計されています。開発者は、Auth0のカスタマイズ可能なログインページとソーシャルプロバイダーのサポートを利用して、迅速に安全なサインインフローを実装できます。

用途

  • Webアプリ認証
  • ユーザーのログイン/ログアウトフロー
  • セキュアなトークン管理
  • シングルサインオンの統合
  • ソーシャルログインの実装

主な機能

  • Web用のAuth0統合
  • OAuth2 のサポート
  • トークンの取り扱い
  • カスタマイズ可能なログインUI
  • Browser-compatible

適している対象

  • Flutter Web開発者
  • セキュアな認証を必要とするアプリケーション
  • Auth0 ID プラットフォームを使用するプロジェクト
  • ソーシャルログイン付きのウェブアプリ
  • 迅速な認証実装を優先するチーム

注意事項

  • Auth0アカウントのセットアップが必要です
  • Webプラットフォームに限定
  • Auth0 サービスの利用可能性に依存します
  • Auth0ダッシュボードで適切なドメイン設定が必要です
  • 高度なユースケースには、追加のフロントエンドカスタマイズが必要になる場合があります

元の README

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

A Flutter package to easily integrate Auth0 into Web Flutter apps.

Platform Support

Android iOS MacOS Web Linux Windows
x x x ✔️ x x

Auth0FlutterWeb is supported for web only.

Features

Integrate Auth0 authentication across web Flutter apps. Registration and Login users, logout users, and identify currently authenticated users across web.

Usage

To use this plugin, add auth0_flutter2 as a dependency in your pubspec.yaml file.

Web

Add the Auth0 Javascript SPA (Single Page Application) library.

<script src="https://cdn.auth0.com/js/auth0-spa-js/1.13/auth0-spa-js.production.js"></script>

Example

Import the library.

import 'package:auth0_flutter2/auth0_flutter2.dart';

Then initialize the Auth0FlutterWeb class in your main() method.

void main() {
  // add the auth0domain
  Auth0FlutterWeb.auth0Domain = "AUTH0_DOMAIN";
  //add the auth0ClientID
  Auth0FlutterWeb.auth0ClientId = "AUTH0_CLIENT_ID";
// add the redirect uri
  Auth0FlutterWeb.redirectUri = "YOUR_APP_REDIRECT_URI";
  

  // Set the URL strategy for our web app. Removes 
  // trailing hash(#) to ensure login callbacks
  // will be captured and processed correctly.
  Auth0FlutterWeb.setPathUrlStrategy();

  runApp(const MyApp());
}

Then invoke the class methods anywhere in your Dart code.

Auth0FlutterWeb.instance.userAuthentication(screenHint: "signup");
Auth0FlutterWeb.instance.userAuthentication(screenHint: "login");
Auth0FlutterWeb.instance.logoutUser();
Auth0FlutterWeb.instance.getLoggedInUserId();

カテゴリー

依存関係

依存関係一覧 4 件

ソースリポジトリ

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

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