msl_oauth_login 1.0.2 copy "msl_oauth_login: ^1.0.2" to clipboard
msl_oauth_login: ^1.0.2 copied to clipboard

Azure Active Directory OAuth2 authentication package for Flutter with a ready-to-use login button.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'login_screen.dart';

// A single GlobalKey<NavigatorState> shared across the whole app.
// Pass it to BOTH MaterialApp.navigatorKey AND every Config you create.
final navigatorKey = GlobalKey<NavigatorState>();

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

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'msl_oauth_login example',
      navigatorKey: navigatorKey, // ← same key passed to each Config
      theme: ThemeData(
        colorSchemeSeed: const Color(0xFF0078D4),
        useMaterial3: true,
      ),
      home: const LoginScreen(),
    );
  }
}
1
likes
160
points
18
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Azure Active Directory OAuth2 authentication package for Flutter with a ready-to-use login button.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_secure_storage, http, shared_preferences, webview_flutter

More

Packages that depend on msl_oauth_login