Giter Club home page Giter Club logo

flutter-microsoft-authentication's Issues

Migrate to null safety

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>)

need to update MSAL

Need to add B2C login by creating a B2CAuthority object to construct application context, current AADAuthority does not work for B2C

App Build is failing with erros

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.

  • What went wrong:
    Execution failed for task ':flutter_microsoft_authentication:compileDebugKotlin'.

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

V2 embedding update

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 !

Issue when app is being closed while is fetching token interactively

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!

Deprecated version of the Android embedding

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.

MsalClientException "unknown_error"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.