我在一个angular 4/ ASP.NET Core2Web应用程序中使用IdentityServer和JWT持有者令牌来验证请求。
身份验证一切正常,我可以获得持有者令牌。不幸的是,该项目有几个页面(如hangfire仪表板)需要常规的表单身份验证cookie。如何以编程方式创建cookie,并在angular应用程序中设置它,以便当我导航到遗留页面时,cookie存在,并且可以对用户进行身份验证?常规登录页面仍然存在,
在Identity Server 4、Quick、ExternalController.cs - CallBack方法中,我发现了以下内容:// for the specific prtotocols used and store them in the local auth cookieProcessLoginCallbackForOidc(result, additionalLocalCl