https://github.com/egomobile/azuread_login_view
Provides one or more widgets to handle OAuth logins via Azure Active Directory.
https://github.com/egomobile/azuread_login_view
active-directory android azure azureactivedirectory azuread dart dart-lang dart-language dart2 dartlang dartlanguage flutter ios ipados login package password-reset registration webview widget-library
Last synced: 8 months ago
JSON representation
Provides one or more widgets to handle OAuth logins via Azure Active Directory.
- Host: GitHub
- URL: https://github.com/egomobile/azuread_login_view
- Owner: egomobile
- License: lgpl-3.0
- Archived: true
- Created: 2022-06-29T12:32:06.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-24T17:28:34.000Z (over 3 years ago)
- Last Synced: 2024-12-16T11:53:17.565Z (over 1 year ago)
- Topics: active-directory, android, azure, azureactivedirectory, azuread, dart, dart-lang, dart-language, dart2, dartlang, dartlanguage, flutter, ios, ipados, login, package, password-reset, registration, webview, widget-library
- Language: Dart
- Homepage: https://pub.dev/packages/azuread_login_view
- Size: 120 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dev/packages/azuread_login_view)
[](https://github.com/egomobile/azuread_login_view/actions/workflows/publish.yml)
[Flutter widget](https://docs.flutter.dev/development/ui/widgets) using [webview_flutter](https://pub.dev/packages/webview_flutter) and [http](https://pub.dev/packages/http), which provides one or more widgets to handle OAuth logins via Azure Active Directory.
```dart
import 'package:azuread_login_view/azuread_login_view.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyLoginExamplePage());
}
class MyLoginExamplePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
final AzureADLoginViewOptions loginViewOptions = AzureADLoginViewOptionsBuilder()
// setup required settings
.setTenant("")
.setClientId("")
.setRedirectUri("")
.setLoginPolicy("")
.setOnNewTokens((AzureADLoginNewTokensHandlerContext context) {
// s. `context.tokens`
})
// this is optional
.setOnNavigationError((AzureADLoginNavigationErrorHandlerContext context) {
// ...
})
.build();
return MaterialApp(
home: AzureADLoginView(loginViewOptions),
);
}
}
```
An example application can be found inside [example folder](./example/).