flutteradal 1.0.0 flutteradal: ^1.0.0 copied to clipboard
Plugin to use the ADAL packages from Android & IOS.
flutteradal #
Plugin to use ADAL from an on premise ADFS Server or potentially Azure. Tested with 3.0.
Currently only iOS supported.
ios pod used https://github.com/AzureAD/azure-activedirectory-library-for-objc
How-to
#IOS
Set the minium deployment target of your project to 10.0 - This is a requirement set by the azure-activedirectory-library-for-objc https://github.com/AzureAD/azure-activedirectory-library-for-objc/issues/1435
Use the following commands in your flutter project after adding the package to your pubspec.yaml file
flutter packages get cd /ios pod init pod install
#FLUTTER
Create an AdalAuthContext. Call Flutteradal.adalLogin and pass your configuration data to it. The AdalAuthContext will hold the result.
On error and error will be set on AdalAuthContext.errorType
AdalAuthContext authContext; authContext = await Flutteradal.adalLogin( authority: Config.authority, resourceUrl: Config.resourceUrl, clientId: Config.clientId, redirectUrl: Config.redirectUrl);