我正在尝试延长确认电子邮件和密码重置电子邮件的生命周期,但我无法做到这一点.目前我正在使用Asp.net核心1.0.1,如果这有用的话.
一些提示甚至更好的代码,将非常感激.
谢谢
asp.net-mvc password-recovery email-confirmation asp.net-identity asp.net-core
我有一个 IDP(身份服务器 4)托管多个绑定:auth.company1.com 和 auth.company2.com 我还有一个 API 受该 IDP 保护。因此,为了访问 API,我需要从 IDP 获取访问令牌。这是在 API 级别的启动类中配置的,如下所示:
services.AddAuthentication("Bearer")
.AddIdentityServerAuthentication(options =>
{
options.Authority = "https://auth.company1.com/";
options.RequireHttpsMetadata = true;
options.ApiName = "atb_api";
});
Run Code Online (Sandbox Code Playgroud)
如何动态配置 options.Authority 以允许来自多个域https://auth.company1.com/和https://auth.company2.com/ 的权限?