我点击了这些链接:
这些是我的设置:
services.AddIdentityServer()
.AddApiAuthorization<ApplicationUser, ApplicationDbContext>();
services.AddAuthentication()
.AddIdentityServerJwt();
services.ConfigureNonBreakingSameSiteCookies();
// Adjust to this (or similar)
services
.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddCookie(options =>
{
// add an instance of the patched manager to the options:
options.CookieManager = new ChunkingCookieManager();
});
Run Code Online (Sandbox Code Playgroud)
然后在配置中:
app.UseCookiePolicy();
Run Code Online (Sandbox Code Playgroud)
我正在尝试通过 http 运行身份。我在设置某些(但不是全部)cookie 时遇到这些错误,并且我完全无法删除 chrome 中的 cookie
我无法使用 aws cloud shell。我在受支持的区域(爱尔兰)运营,并且我的用户拥有正确的权限 (AWSCloudShellFullAccess)。
{ "Version": "2012-10-17", "Statement": [ { "Action": [ "cloudshell:*" ], "Effect": "Allow", "Resource": "*" } ] }
Run Code Online (Sandbox Code Playgroud)
为什么会被禁用?
我尝试遵循本指南。但那里的建议不起作用。 AWS CloudShell 故障排除
这是我得到的错误:
System.IO.FileNotFoundException:“无法加载文件或程序集“Newtonsoft.Json,版本= 12.0.0.0,文化=中性,PublicKeyToken = 30ad4fe6b2a6aeed”。该系统找不到指定的文件。'
这是我在cs项目中的内容:
Run Code Online (Sandbox Code Playgroud)<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath> </Reference>
路径似乎是正确的。
我尝试找到不同的解决方案,例如将软件包重新安装到早期版本并将 app.config 修改为:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Run Code Online (Sandbox Code Playgroud)
没有任何效果。