Flutter Firebase Microsoft Auth | Azure AD

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 48

  • @yomna_mi
    @yomna_mi 8 місяців тому +2

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

  • @Leo22Fig
    @Leo22Fig 3 місяці тому +1

    The Tenant Id is an optional param.
    If you guys are gettint the error AADSTS50020 saying that the account is nor registered on the tenant, and the objective is gettint it open to ANY windoes account, DO NOT SEND the tenant id.

  • @gopalmakwana3412
    @gopalmakwana3412 Місяць тому

    I'm implementing the same but getting below error:
    Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared. Some specific scenarios are - 1) Using IDP-Initiated SAML SSO. 2) Using signInWithRedirect in a storage-partitioned browser environment.

  • @mayanksharma6232
    @mayanksharma6232 4 місяці тому

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

  • @rvb6516
    @rvb6516 9 місяців тому +3

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

  • @khalidShahbic
    @khalidShahbic 9 місяців тому +1

    any idea how to incorporate the same into flutterflow

    • @eTechViral
      @eTechViral  9 місяців тому

      Good idea to work on.

    • @AzmiMohdNoor-xr7tx
      @AzmiMohdNoor-xr7tx 7 місяців тому

      Really hope to see how to implement in Flutterflow.

  • @mohamedchabchoub8022
    @mohamedchabchoub8022 Місяць тому

    what if i had the authenticator app istalled on my phone ?

  • @tankiakia1982
    @tankiakia1982 8 місяців тому

    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?

  • @champaniudayangani5908
    @champaniudayangani5908 7 місяців тому

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

    • @eTechViral
      @eTechViral  7 місяців тому

      Can you please elaborate your question?

  • @FelipeArcaContal
    @FelipeArcaContal 24 дні тому

    ¿with flutterflow?

  • @hectorlopes7955
    @hectorlopes7955 9 місяців тому

    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  9 місяців тому

      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  9 місяців тому

      Let me know if I can help with something specific.

  • @LylePhillips-pw8dz
    @LylePhillips-pw8dz 8 місяців тому

    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  7 місяців тому

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

  • @jonas-vdv
    @jonas-vdv 10 місяців тому

    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  10 місяців тому

      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

    • @jonas-vdv
      @jonas-vdv 10 місяців тому

      @@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  10 місяців тому

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

  • @xXkeissiusXx
    @xXkeissiusXx 7 місяців тому

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

    • @eTechViral
      @eTechViral  7 місяців тому +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 7 місяців тому

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

  • @naveenkumarprasad932
    @naveenkumarprasad932 Місяць тому

    Hi Team, I am getting below error and not able to resolve, please someone help me
    Unhandled Exception: [firebase_auth/invalid-credential] HttpMetadata{status=401, cachePolicy=NO_CACHE, cacheDurationJava=null, cacheImmutable=false, staleWhileRevalidate=null, filename=null, lastModified=null, retryAfter=null, crossOriginEmbedderPolicy=null, crossOriginOpenerPolicy=null, crossOriginResourcePolicy=null, permissionsPolicies=[], headers=HTTP/1.1 200 OK

  • @ajinzrathod
    @ajinzrathod 6 місяців тому

    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 6 місяців тому +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 6 місяців тому

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

    • @ajinzrathod
      @ajinzrathod 6 місяців тому

      @@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.

  • @raimundoneto4150
    @raimundoneto4150 6 місяців тому

    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 6 місяців тому

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

    • @eTechViral
      @eTechViral  5 місяців тому

      You might need to add url schemes.

  • @navaidali99
    @navaidali99 4 місяці тому

    Is it supported on web?

  • @DilshaSajan
    @DilshaSajan 6 місяців тому

    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?

    • @talhasaleem09
      @talhasaleem09 Місяць тому

      Were you able to fix this issue DilshaSajan? I'm facing this issue with a very strict deadline. Any help would be of great use. TIA.

  • @GamerEmerald7200
    @GamerEmerald7200 5 місяців тому

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

    • @eTechViral
      @eTechViral  5 місяців тому

      You'll see your ids in your Active Directory.

  • @darksoul4152
    @darksoul4152 8 місяців тому

    Excelent video man, can you pass the code plz?

    • @eTechViral
      @eTechViral  7 місяців тому

      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

  • @SomvenIsHere
    @SomvenIsHere 6 місяців тому

    This is not working for web

    • @navaidali99
      @navaidali99 4 місяці тому

      did you find any solution?

    • @SomvenIsHere
      @SomvenIsHere 4 місяці тому

      @@navaidali99 No Not Yet