패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.9

auth0_web_flutter

웹 플러터 앱에 Auth0를 쉽게 통합할 수 있는 플러터 패키지입니다.

30일 다운로드
295
좋아요
3
Pub 점수
60

패키지 설치

flutter pub add auth0_web_flutter

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

웹 기반의 Flutter 애플리케이션에 Auth0 인증을 통합하는 것을 간편하게 만드는 Flutter 패키지입니다. 웹 환경에서 사용자 로그인, 로그아웃 및 토큰 관리를 위한 간편한 인터페이스를 제공합니다. 이 패키지는 Auth0의 강력한 아이덴티티 플랫폼을 활용하여 최소한의 설정으로 안전하고 확장 가능한 인증을 가능하게 합니다. 브라우저 기반 워크플로우와 OAuth2 프로토콜과의 호환성을 보장하기 위해 웹 플랫폼 전용으로 설계되었습니다. 개발자는 Auth0의 사용자 정의 로그인 페이지와 소셜 제공자 지원을 활용해 안전한 로그인 흐름을 빠르게 구현할 수 있습니다.

사용 사례

  • 웹 앱 인증
  • 사용자 로그인/로그아웃 흐름
  • 보안 토큰 관리
  • 단일 로그인 통합
  • 소셜 로그인 구현

주요 기능

  • 웹용 Auth0 통합
  • OAuth2 지원
  • 토큰 처리
  • 사용자 정의 가능한 로그인 UI
  • Browser-compatible

적합한 대상

  • Flutter 웹 개발자
  • 보안 인증이 필요한 응용 프로그램
  • Auth0 식별 플랫폼을 사용하는 프로젝트
  • 소셜 로그인을 갖춘 웹 앱
  • 빠른 인증 구현을 우선시하는 팀

고려 사항

  • Auth0 계정 설정이 필요합니다
  • 웹 플랫폼에 제한됨
  • 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.