Flutter Firebase Microsoft Auth | Azure AD

Поделиться
HTML-код
  • Опубликовано: 17 сен 2024

Комментарии • 41

  • @yomna_mi
    @yomna_mi 4 месяца назад +1

    Thank you! I’ve been struggling with it for days because of the configurations!

  • @rvb6516
    @rvb6516 5 месяцев назад +2

    Congrats ❤ can you do video on Microsoft login without Firebase ? 🔥

  • @mayanksharma6232
    @mayanksharma6232 25 дней назад

    threre is an error in customOAuthParameters
    Error:
    The named parameter 'customOAuthParameters' isn't defined.
    Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'customOAuthParameters'.dartundefined_named_parameter
    1 positional argument expected by 'setCustomParameters', but 0 found.
    Try adding the missing argument.dartnot_enough_positional_arguments
    CAN YOU HELP??

  • @khalidShahbic
    @khalidShahbic 5 месяцев назад +1

    any idea how to incorporate the same into flutterflow

    • @eTechViral
      @eTechViral  5 месяцев назад

      Good idea to work on.

    • @AzmiMohdNoor-xr7tx
      @AzmiMohdNoor-xr7tx 3 месяца назад

      Really hope to see how to implement in Flutterflow.

  • @DilshaSajan
    @DilshaSajan 2 месяца назад

    I am getting the below error message, when trying to login by giving user name and password....the required field 'request' is missing from the credential .. Can you please suggest a fix for this?

  • @tankiakia1982
    @tankiakia1982 4 месяца назад

    Hi, I tried this method and it works fine on emulator. But it was not working on actual device after I build apk. Do you have any idea on how to fix this issue please?

  • @navaidali99
    @navaidali99 18 дней назад

    Is it supported on web?

  • @champaniudayangani5908
    @champaniudayangani5908 3 месяца назад

    Thank you! How can I get this work with open id connect?

    • @eTechViral
      @eTechViral  3 месяца назад

      Can you please elaborate your question?

  • @hectorlopes7955
    @hectorlopes7955 5 месяцев назад

    Hey man whats up? thanks for the video help a lot but i have one question this commands/ functions that you use like "OauthProvider" and others are the same in react native? because i'am trying to use the firebase and microsoft with react native expo but i did'nt find nothing your video is the most near i had found about this theme if someone knows some documentation or video about this theme, thanks a lot

    • @eTechViral
      @eTechViral  5 месяцев назад

      In flutter I'm using firebase_auth package from pub.dev which provides OauthProvider. I hope there might be some way in react native too to get OauthProvider. Since, I already showed the crucial steps with Microsoft setup I think on the client side react native this is not going to be so hard to achieve.

    • @eTechViral
      @eTechViral  5 месяцев назад

      Let me know if I can help with something specific.

  • @ajinzrathod
    @ajinzrathod 2 месяца назад

    I did exactly what was asked in the video. When I click on Sign in with Microsoft, I am facing this:
    Error during Microsoft sign-in: [firebase_auth/unknown] An internal error has occurred. [ INVALID_APP_ID
    Edit: Is this correct or I need to update this?
    dependencies:
    flutter:
    sdk: flutter
    cupertino_icons: ^1.0.6
    msal_js: ^2.14.0
    flutter_web_auth: ^0.5.0
    font_awesome_flutter: ^10.7.0
    firebase_core: ^3.1.1
    firebase_auth: ^5.1.1

    • @raimundoneto4150
      @raimundoneto4150 2 месяца назад +1

      "What may be happening is that the 'package_name' in the 'google-services.json' file is different from the 'package_name' of the application project. For example, if the project name is app_test and the organization is com.example, both in Firebase and in the 'google-services.json' file, it should be like this: com.example.app_test."

    • @raimundoneto4150
      @raimundoneto4150 2 месяца назад

      I went through the same problem and was able to solve it this way.

    • @ajinzrathod
      @ajinzrathod 2 месяца назад

      @@raimundoneto4150 Thank you for the help. It turns out my `google-services.json` file was correct. The issue was with the package_name. I had not used the exact package name specified during the app's creation. To resolve this, I reran the `flutterfire configure --project=myAppName` command, and when prompted for the package_name, I provided the exact name from the `defaultConfig { applicationId ... }` section.

  • @LylePhillips-pw8dz
    @LylePhillips-pw8dz 4 месяца назад

    Hey man thanks I will be using this in or project. I have a question, is there not a way to do this like with aad_oauth dart package. In other words without opening a web browser to signin ?
    Thanks Again

    • @eTechViral
      @eTechViral  3 месяца назад

      There might be other ways too. This s not just one.

  • @xXkeissiusXx
    @xXkeissiusXx 3 месяца назад

    What is the name of the library you use in Flutter to log in with Microsoft?

    • @eTechViral
      @eTechViral  3 месяца назад +1

      firebase_auth library method to signInWithProvider and I set up custom provider. Please watch the video in order to get to know about full structure.

    • @xXkeissiusXx
      @xXkeissiusXx 3 месяца назад

      @@eTechViral Thank you!!, Is there a library that can be used for this same thing but without using firebase?

  • @raimundoneto4150
    @raimundoneto4150 2 месяца назад

    Hi, if you need to fetch some data from the authenticated user, like the user's photo, you can use this implementation: microsoft_graph_api: ^0.0.7

  • @abdulbasitansari2469
    @abdulbasitansari2469 2 месяца назад

    App crashes on IOS.. working fine on android.. any tip?

    • @eTechViral
      @eTechViral  Месяц назад

      You might need to add url schemes.

  • @GamerEmerald7200
    @GamerEmerald7200 2 месяца назад

    You literally showed us the Application secret and half of the application id which is not allowed.

    • @eTechViral
      @eTechViral  Месяц назад

      You'll see your ids in your Active Directory.

  • @darksoul4152
    @darksoul4152 4 месяца назад

    Excelent video man, can you pass the code plz?

    • @eTechViral
      @eTechViral  3 месяца назад

      It's 2 lines of code to sign up with microsoft please pause the video at the point and take it. Simple. The video seems long because there's custom configuration in Microsoft Active Directory

  • @noobssucken
    @noobssucken 6 месяцев назад

    Hello,
    I am pretty new to coding in general and i am trying to make a business app in flutter, this video has been very helpfull for me trying to auth against my azure tenant.
    But I also have a question, I have set up a condition so that the app will use popup auth when the device is Web (and this works) but i cannot get the Android in-app logon to work, the button just does not work there.
    Any tips?
    thnx in advance

    • @eTechViral
      @eTechViral  6 месяцев назад

      We're glad that you found this video helpful. However, if on Android end the signInWithProvider doesn't open any window maybe because of slow internet connection. But still, I'd like to know, does that throw any exception whenever the window is not opening? Once we've this information we will be able to guide you further to implement azure auth in your mobile app.
      Thanks

    • @noobssucken
      @noobssucken 6 месяцев назад

      @@eTechViral well, after some searching i have found problem, it was because of the SHA1 fingerprint not being in the firebase config.
      But I was using Flutterflow to make this application and i am not sure why a direct export/apk build does not work from there, but when i build the app in vscode and add a new key to the keystore and add the fingerprint to the Firebase config it does work.

    • @eTechViral
      @eTechViral  6 месяцев назад

      The same thing I showed at the end of the video.

  • @SomvenIsHere
    @SomvenIsHere 2 месяца назад

    This is not working for web

    • @navaidali99
      @navaidali99 18 дней назад

      did you find any solution?

    • @SomvenIsHere
      @SomvenIsHere 18 дней назад

      @@navaidali99 No Not Yet