小编Gzi*_*ani的帖子

如何在asp.net核心mvc中配置确认电子邮件令牌生命周期

我正在尝试延长确认电子邮件和密码重置电子邮件的生命周期,但我无法做到这一点.目前我正在使用Asp.net核心1.0.1,如果这有用的话.

一些提示甚至更好的代码,将非常感激.

谢谢

asp.net-mvc password-recovery email-confirmation asp.net-identity asp.net-core

9
推荐指数
1
解决办法
4100
查看次数

Asp.net Core 2 使用 Identity Server 4 启用多租户

我有一个 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/ 的权限?

c# multi-tenant asp.net-core identityserver4

6
推荐指数
1
解决办法
4007
查看次数