【发布时间】:2021-08-05 03:19:51
【问题描述】:
我正在尝试将我的 Firebase 应用程序与作为身份提供者的斯坦福大学的 SUNet 连接起来。通过弹出窗口成功登录后,我收到 400 响应。相关代码粘贴在下面。有人见过这个吗?
const samlLogin = (samlProvider) => () => {
const auth = firebase.auth();
const provider = new firebase.auth.SAMLAuthProvider(samlProvider);
auth.signInWithPopup(provider).then((userCredential) => {
console.log(userCredential);
onSuccess(userCredential.user);
})
.catch((err) => {
console.log(err);
setLoading(false);
setErrorText('Something went wrong. Try again or contact support.')
});
}
domain: "global" message: "INVALID_IDP_RESPONSE : Invalid Response: has no assertions." reason: "invalid"
【问题讨论】:
标签: firebase google-cloud-platform firebase-authentication saml saml-2.0