You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a Flutter app that uses an OpenID Connect custom provider for user authentication. Everything has been setup according to the documentation and I've set up my the provider in Firebase (https://firebase.google.com/docs/auth/ios/openid-connect?hl=en&authuser=1). The app code in question is:
try {
var provider = OAuthProvider('<OIDC ID listed in Firebase>');
fetchedCredential = await FirebaseAuth.instance.signInWithProvider(provider);
} catch (e) {
print("Error with OIDC: " + e.toString());
}
Every time fetchedCredential = await FirebaseAuth.instance.signInWithProvider(provider) is called, the app quits and does not show an error message. This happens when it's run normally and in debug mode. Debug mode shows that it's quitting specifically when the signInWithProvider(provider) method is called. Does Flutter truly work with third-party identity providers? And is there better documentation on how to do this, the steps in Google's documentation (https://firebase.google.com/docs/auth/ios/openid-connect?hl=en&authuser=1) are leading me nowhere.
FLUTTER DOCTOR OUTPUT:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4.1 22F770820d darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.65.2)
[✓] Connected device (3 available)
[✓] Network resources
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a Flutter app that uses an OpenID Connect custom provider for user authentication. Everything has been setup according to the documentation and I've set up my the provider in Firebase (https://firebase.google.com/docs/auth/ios/openid-connect?hl=en&authuser=1). The app code in question is:
Every time
fetchedCredential = await FirebaseAuth.instance.signInWithProvider(provider)
is called, the app quits and does not show an error message. This happens when it's run normally and in debug mode. Debug mode shows that it's quitting specifically when thesignInWithProvider(provider)
method is called. Does Flutter truly work with third-party identity providers? And is there better documentation on how to do this, the steps in Google's documentation (https://firebase.google.com/docs/auth/ios/openid-connect?hl=en&authuser=1) are leading me nowhere.FLUTTER DOCTOR OUTPUT:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4.1 22F770820d darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.65.2)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
Dependency versions used:
cloud_firestore: ^4.8.1
cloud_functions: ^4.3.3
cupertino_icons: ^1.0.5
dartz: ^0.10.0
firebase_auth: ^4.7.2
firebase_core: ^2.14.0
firebase_database: ^10.2.3
firebase_messaging: ^14.6.3
flutter_linkify: ^6.0.0
flutter_local_notifications: ^14.1.1
flutter_modular: ^5.0.3
flutter_svg: ^2.0.7
getwidget: ^3.1.1
oauth2_client: ^3.2.1
package_info_plus: ^4.0.2
platform: ^3.1.0
provider: ^6.0.2
shared_preferences: ^2.0.12
intl: ^0.18.1
Beta Was this translation helpful? Give feedback.
All reactions