azure_auth 0.0.1 copy "azure_auth: ^0.0.1" to clipboard
azure_auth: ^0.0.1 copied to clipboard

Flutter package for handling authentication using **Azure Active Directory B2C**, supporting **Facebook**, **Google**, **Email/Password**, and **Phone** sign-in through Azure's identity providers.

Azure AD B2C Authentication for Flutter #

A Flutter package for handling authentication using Azure Active Directory B2C, supporting Facebook, Google, Email/Password, and Phone sign-in through Azure's identity providers.

Features #

  • Azure AD B2C OAuth2 support
  • Integrates with external identity providers (Facebook, Google, etc.)
  • Secure token storage using flutter_secure_storage
  • Supports callback handling via app_links or custom URI schemes
  • Modular and easily customizable

Getting started #

Usage #

To use `azure_Auth`:

```dart
dependencies:
flutter:
sdk: flutter
azure_Auth: ^0.0.1

To import dynamic_icons_matte:

import 'package:dynamic_icons/dynamic_icons_matte.dart';

Usage #

import 'dart:async';

import 'package:app_links/app_links.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:vsauth/login_screen.dart'; import 'package:vsauth/vsauth.dart';

void main() { runApp(const MyApp()); }

class MyApp extends StatefulWidget { const MyApp({super.key});

@override State

class _MyAppState extends State

@override void initState() { // TODO: implement initState super.initState(); _authCubit = AuthCubit( // 👈 initialize it here clientId: "54e95ff1-187c-4c38-89b5-d1796c495054", redirectUri: "com.example.vastu://vsauth", scope: "openid profile email offline_access", ); initDeepLinks(); }

Future

@override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( // This is the theme of your application. // // TRY THIS: Try running your application with "flutter run". You'll see // the application has a purple toolbar. Then, without quitting the app, // try changing the seedColor in the colorScheme below to Colors.green // and then invoke "hot reload" (save your changes or press the "hot // reload" button in a Flutter-supported IDE, or press "r" if you used // the command line to start the app). // // Notice that the counter didn't reset back to zero; the application // state is not lost during the reload. To reset the state, use hot // restart instead. // // This works for code too, not just values: Most code changes can be // tested with just a hot reload. colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), ), home: AuthScreen( authCubit: _authCubit ), ); } }


## Additional information

Azure AD B2C Docs

For support, file issues or pull requests on GitHub.

This package is maintained and updated regularly.
1
likes
0
points
92
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package for handling authentication using **Azure Active Directory B2C**, supporting **Facebook**, **Google**, **Email/Password**, and **Phone** sign-in through Azure's identity providers.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

app_links, auto_route, dart_jsonwebtoken, dio, flutter, flutter_bloc, flutter_web_auth_2, form_validator, get, json_serializable

More

Packages that depend on azure_auth