在我的angular和firebase应用程序中,我有一个管理员,我希望管理员能够从firebase身份验证中删除用户,此时我有所有用户的电子邮件,我如何通过电子邮件做到这一点?我只找到了这段代码,但它不能工作。
var user = firebase.auth().currentUser;
user.delete().then(function() {
// User deleted.
}).catch(function(error) {
// An error happened.
});
提前谢谢。
目前,我们的cookie MVC系统是使用OpenIdConnect和cookie身份验证来保护的。我们已经使用azure active directory启用了oauth身份验证流。
public void ConfigureAuthOpenIdConnect(IAppBuilder app)
{
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
var cookieAuthenticationOptions =