-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firebase_auth Login with Microsoft Oauth2 not working. #11295
Comments
Hi @parth22, can you share the code sample you use to call Microsoft? Your error message indicates that you're sending something which public client should not be sending |
@danagbemava-nc This is the code I'm using.
|
Hi @parth22, what platform are you targeting? You may need to switch the method being called based on the platform you're testing. See https://firebase.google.com/docs/auth/flutter/federated-auth#ios+_1 |
@danagbemava-nc I'm targeting the Android and iOS platforms. |
Hi @parth22, one final thing, can you try using |
@danagbemava-nc Sure, let me try. |
@danagbemava-nc I have tried as you say. final FirebaseAuth auth = FirebaseAuth.instance;
OAuthProvider oAuthProvider = OAuthProvider('microsoft.com');
UserCredential userCredential =
await auth.signInWithProvider(oAuthProvider); Ended with the same error.
|
Thanks for the info, labeling for the teams attention |
Hi, did you able to solve this problem? I am facing with the same issue. |
No, Even after trying everything. At last, my client changes the requirements. |
I just figured it out. From the Azure AD portal, your client should authorize an access token (from "Implicit grant and hybrid flows"). |
Great. I will check it out. And, update you here. |
i have same problem using Android native integration
|
Hello, a lot have changed since this issue, are you still reproducing this? |
Hey @parth22. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
I'm doing login with Microsoft in my Flutter app using firebase_auth. I have followed each step written in Firebase's official documentation. But still, I'm getting the below error when I try to log in with my Microsoft account.
The error itself says that Public clients can't send a client secret. So, I have tried to remove the client's secret value from my Firebase project config. But, this field is mandatory.
![Screenshot 2023-07-15 at 1 18 25 PM](https://cdn.statically.io/img/private-user-images.githubusercontent.com/13308845/253852542-e326a166-6e30-4c12-95a4-f99e80be4e4a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MTczMTMsIm5iZiI6MTcyMTQxNzAxMywicGF0aCI6Ii8xMzMwODg0NS8yNTM4NTI1NDItZTMyNmExNjYtNmUzMC00YzEyLTk1YTQtZjk5ZTgwYmU0ZTRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE5MjMzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc1Yzg1MDE0MjVkMTYwZjAxNGZkZmEyMDZlZGFiNzAyNDc2MzExYTIxMGM0OWVjNWNlZGE3YTRmNDY5Zjc5OWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UZm2Ijs7c7WgXdKXFzLZT26VXR7zukgf-r8UumW1vCE)
![Screenshot 2023-07-15 at 1 19 17 PM](https://cdn.statically.io/img/private-user-images.githubusercontent.com/13308845/253852559-29a78327-07c2-4721-8c29-9a6aa43930c7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MTczMTMsIm5iZiI6MTcyMTQxNzAxMywicGF0aCI6Ii8xMzMwODg0NS8yNTM4NTI1NTktMjlhNzgzMjctMDdjMi00NzIxLThjMjktOWE2YWE0MzkzMGM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE5MjMzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkODg2NWFiZjBlMTlhY2VlMGUzZWJlZWM3OTlhYzg0ODMzZTVhYjlhMTE0MWFmM2Y1MDQxNmJmZDI2MmY2MTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nDCYS6MUHRtF45LtThr8BK4I46_7cRc4BygQLVT4nzs)
![Screenshot 2023-07-15 at 1 19 40 PM](https://cdn.statically.io/img/private-user-images.githubusercontent.com/13308845/253852581-ed835fb8-daa6-4740-a84c-f2a108b85f5b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MTczMTMsIm5iZiI6MTcyMTQxNzAxMywicGF0aCI6Ii8xMzMwODg0NS8yNTM4NTI1ODEtZWQ4MzVmYjgtZGFhNi00NzQwLWE4NGMtZjJhMTA4Yjg1ZjViLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE5MjMzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM4NDUxZjgwMDJkZDM4YjNhMjliNmU3NmY2NGE5ZTI2OWZjZGJjMWViNWEyN2RmZDM4NmI3YzBkYzFmMjBiYWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3yaJBX14BgaljpQQ7YEDB3lbBP4MWOYUwfTH91k1YwA)
![Screenshot 2023-07-15 at 1 50 35 PM](https://cdn.statically.io/img/private-user-images.githubusercontent.com/13308845/253852596-8a70f92c-2ff3-4826-a350-4adfb6381566.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MTczMTMsIm5iZiI6MTcyMTQxNzAxMywicGF0aCI6Ii8xMzMwODg0NS8yNTM4NTI1OTYtOGE3MGY5MmMtMmZmMy00ODI2LWEzNTAtNGFkZmI2MzgxNTY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE5MjMzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0ODE4ODMxMWMyODZkMWVhOTI5ODlmMzczNjllYmJkZmYyMjdmYTE0OWVhYTM2M2I4N2NhZjY4NWE0NjMzZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.IZNwrcExgdpVtdZHOXjFY5t7FQgZFeL2gnPCPOs2FCc)
I'm also attaching the configuration screenshots of my Firebase and Azure portals.
The text was updated successfully, but these errors were encountered: