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.
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.
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??
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?
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
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.
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
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
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
@@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.
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
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
"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 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.
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?
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
Thank you! I’ve been struggling with it for days because of the configurations!
You are welcome!
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.
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.
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??
Congrats ❤ can you do video on Microsoft login without Firebase ? 🔥
Yes, soon.
any idea how to incorporate the same into flutterflow
Good idea to work on.
Really hope to see how to implement in Flutterflow.
what if i had the authenticator app istalled on my phone ?
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?
Thank you! How can I get this work with open id connect?
Can you please elaborate your question?
¿with flutterflow?
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
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.
Let me know if I can help with something specific.
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
There might be other ways too. This s not just one.
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
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
@@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.
The same thing I showed at the end of the video.
What is the name of the library you use in Flutter to log in with Microsoft?
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.
@@eTechViral Thank you!!, Is there a library that can be used for this same thing but without using firebase?
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
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
"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."
I went through the same problem and was able to solve it this way.
@@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.
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
App crashes on IOS.. working fine on android.. any tip?
You might need to add url schemes.
Is it supported on web?
Yes
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?
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.
You literally showed us the Application secret and half of the application id which is not allowed.
You'll see your ids in your Active Directory.
Excelent video man, can you pass the code plz?
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
This is not working for web
did you find any solution?
@@navaidali99 No Not Yet