S'authentifier à l'aide de fournisseurs OAuth avec Cordova
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Avec le SDK JavaScript Firebase, vous pouvez autoriser vos utilisateurs Firebase à s'authentifier à l'aide de n'importe quel fournisseur OAuth compatible dans un environnement Cordova. Vous pouvez intégrer n'importe quel fournisseur OAuth compatible en effectuant manuellement le flux OAuth et en transmettant les identifiants OAuth obtenus à Firebase.
Instructions pour gérer manuellement le flux de connexion pour chaque fournisseur:
Une fois que vous avez obtenu le jeton d'ID Apple de l'utilisateur, utilisez-le pour créer un objet d'identifiant, puis connectez l'utilisateur avec les identifiants.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[],[],null,["| **Warning** : The following three Firebase Authentication features\n| are impacted by the shutdown of Firebase Dynamic Links on August 25, 2025:\n| email link authentication for mobile apps, OAuth flows for Android apps\n| using older versions of the Authentication SDK, and Cordova OAuth support for\n| web apps. In order to use these features after the shutdown of Dynamic Links,\n| migrate to use a newer SDK version and complete some additional steps.\n|\n| For specific information and migration guidance, visit the\n| [Dynamic Links\n| Deprecation FAQ](/support/dynamic-links-faq#impacts-on-email-link-authentication).\n\nWith the Firebase JS SDK, you can let your Firebase users authenticate using any\nsupported OAuth provider in a Cordova environment. You can integrate any\nsupported OAuth provider by carrying out the OAuth flow manually and passing the\nresulting OAuth credential to Firebase.\n\nInstructions on how to handle the sign-in flow manually for each provider:\n\n- [Google](/docs/auth/web/google-signin#expandable-2)\n- [Facebook](/docs/auth/web/facebook-login#expandable-2)\n- [Twitter](/docs/auth/web/twitter-login#handle_the_sign-in_flow_manually)\n- [GitHub](/docs/auth/web/github-auth#handle_the_sign-in_flow_manually)\n- [Microsoft](/docs/auth/web/microsoft-oauth#expandable-2)\n- [Yahoo](/docs/auth/web/yahoo-oauth#expandable-2)\n- Apple\n 1. Follow [Configuring your webpage for Sign in with\n Apple](https://developer.apple.com/documentation/signinwithapplejs/configuring_your_webpage_for_sign_in_with_apple) to sign in the user with their Apple Account and get the user's Apple ID token.\n 2. After you get the user's Apple ID token, use it to build a [Credential\n object](/docs/auth/web/apple#advanced_authenticate_with_firebase_in_nodejs) and then sign in the user with the credential."]]