我已经用数据库第一种方法实现了自定义asp.net标识 . 我已经使用OWIN实现了基于令牌的实现 .

app.CreatePerOwinContext<OVT_UserEntities>(() => new OVT_UserEntities());
app.CreatePerOwinContext<UserManager<User, int>>(
    (IdentityFactoryOptions<UserManager<User, int>> options, IOwinContext context) =>
        new UserManager<User, int>(new UserStore(context.Get<OVT_UserEntities>())));

// Enable the application to use bearer tokens to authenticate users
app.UseOAuthBearerTokens(new OAuthAuthorizationServerOptions
{
    TokenEndpointPath = new PathString("/token"),
    Provider = new OVTApplicationOAuthProvider(
        "self", () => HttpContext.Current.GetOwinContext().GetUserManager<UserManager<User, int>>()),
    AuthorizeEndpointPath = new PathString("/api/account/authorize"),
    AccessTokenExpireTimeSpan = TimeSpan.FromDays(14),
    AllowInsecureHttp = true
});

OVT_UserEntities是我的自定义数据库上下文,它将使用我自己的数据库验证输入的用户名 .

现在我想为组织用户帐户进行活动目录身份验证 .

如何在asp.net身份验证中实现数据库asp.net身份验证活动目录实现 .

如果用户输入他的信用卡,首先我会检查数据库,如果它不可用,那么将进入活动目录进行进一步检查 . 如果在AD(活动目录)中有用,那么将通过获取一些令牌来重定向其他页面 .

任何参考将不胜感激 .