britehousemobile / flutter-microsoft-authentication Goto Github PK
View Code? Open in Web Editor NEWFlutter Wrapper for Microsoft Authentication Library
License: MIT License
Flutter Wrapper for Microsoft Authentication Library
License: MIT License
I made changes from example it's fine but when I try to recreate new flutter app it doesn't work
How do i debug or fix this
I tried to use it on flutter 3.0.2 and I got this warning:
The plugin flutter_microsoft_authentication
uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
When importing the library to a null-safety app, the following warning appears:
info: The library 'package:flutter_microsoft_authentication/flutter_microsoft_authentication.dart' is legacy, and should not be imported into a null safe library. (import_of_legacy_library_into_null_safe at <elided>)
Does this support Azure Ad B2C and Flutter web?
Launching lib/main.dart on Android SDK built for x86 in debug mode...
lib/main.dart:1
e: /home/teja/Music/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_microsoft_authentication-0.1.0/android/src/main/kotlin/za/co/britehouse/flutter_microsoft_authentication/FlutterMicrosoftAuthenticationPlugin.kt: (129, 28): Type mismatch: inferred type is String? but String was expected
e: /home/teja/Music/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_microsoft_authentication-0.1.0/android/src/main/kotlin/za/co/britehouse/flutter_microsoft_authentication/FlutterMicrosoftAuthenticationPlugin.kt: (161, 20): Type mismatch: inferred type is String? but String was expected
e: /home/teja/Music/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_microsoft_authentication-0.1.0/android/src/main/kotlin/za/co/britehouse/flutter_microsoft_authentication/FlutterMicrosoftAuthenticationPlugin.kt: (264, 20): Type mismatch: inferred type is String? but String was expected
FAILURE: Build failed with an exception.
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Need to handle the custom redirection based on the error codes I get from MSAL like 'AADSTS50105' for those who still dont got the access of microsoft. Not able to get those error codes back on catch block on PlatformException. Please suggest what needed to be done.
Hey,
Thanks for this wrapper, i get an error The plugins flutter_microsoft_authentication
use a deprecated version of the Android embedding
Any chance you can update the plugin to the new android embedding ?
Would be greatly appreciated !
Need to add B2C login by creating a B2CAuthority object to construct application context, current AADAuthority does not work for B2C
Hi, thanks for the package, very usefull to quick development, I'm facing an issue related fetch token interactively:
When auth flow begin (after put email and password on MS login) and the loader spinner is showed, i close the app fast, then when i open the app, i cant login with MS until i singOut from the fma manually.
At the moment if the error happen, i signOut from fma the current user and can sign in again, but i think that the workaround is not a really good one.
Regards!
FlutterMicrosoftAuthentication seems to work but acquireTokenInteractively fails:
{kScopes: [User.Read], kClientID: ...,
kAuthority: https://login.microsoftonline.com/organizations,
configPath: assets/auth_config.json}
D/FMAuthPlugin( 2882): File exists: true
D/FMAuthPlugin( 2882): INITIALIZED
acquireTokenInteractively:
{PlatformException} PlatformException(MsalClientException, unknown_error, null)
code = "MsalClientException"
message = "unknown_error"
details = null
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.