Nutzer mit einem benutzerdefinierten Authentifizierungssystem anmelden
In diesem Dokument erfahren Sie, wie Sie mit Identity Platform Nutzer über ein benutzerdefinierten Authentifizierungssystem anmelden.
Hinweis
Nutzer anmelden
Erfassen Sie die Anmeldedaten des Nutzers.
Senden Sie die Anmeldedaten an Ihren Server. Der Server validiert die Anfrage und gibt ein benutzerdefiniertes JWT zurück.
Übergeben Sie das JWT an signInWithCustomToken()
, um den Nutzer bei Identity Platform zu authentifizieren:
firebase.auth().signInWithCustomToken(token).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// ...
});
Nächste Schritte
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-11-23 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Schwer verständlich"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Informationen oder Beispielcode falsch"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Benötigte Informationen/Beispiele nicht gefunden"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problem mit der Übersetzung"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Sonstiges"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Leicht verständlich"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Mein Problem wurde gelöst"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Sonstiges"
}]