我正在使用SharePoint设计器2010中的SharePoint工作流(SharePoint 2010).我发布了很多次没有问题.但经过多次出版(我的东西30)的SharePoint停止改变工作流程(我出版它没有任何错误,我可以找到在SharePoint Web界面新的工作流程发布).
我发布了新版本(使用新命令),但工作流仍然使用旧版本.但是当我修改之前在工作流程中的一个命令时,修改将在下一次运行中出现.我需要添加工作流程新命令.我唯一的选择是将整个工作流程重写为新工作流程.但这是一个非常复杂的工作流程,重写需要我很长时间.这种行为是否正常?这是一些错误吗?有任何补丁或解决方法吗?
我正在使用ASP.Net Core WebApi构建Web服务.我想使用Identity和JWTBearer身份验证.我在Startup类id的ConfigureService方法中的代码:
services.AddIdentity<User, Role>()
.AddDefaultTokenProviders();
//JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
services.AddAuthentication(options =>
{
options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
})
.AddJwtBearer(options =>
{
options.RequireHttpsMetadata = false;
options.SaveToken = true;
options.Audience = Configuration.GetSection("JwtIssuer").Value;
options.ClaimsIssuer = Configuration.GetSection("JwtIssuer").Value;
options.TokenValidationParameters = new TokenValidationParameters
{
ValidateIssuer = true,
ValidateAudience = true,
ValidateLifetime = true,
ValidateIssuerSigningKey = true,
ValidIssuer = Configuration["JwtIssuer"],
ValidAudience = Configuration["JwtIssuer"],
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(Configuration["JwtKey"]))
};
});
Run Code Online (Sandbox Code Playgroud)
Startup类的Configure方法包含:
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseAuthentication();
app.UseMvc();
Run Code Online (Sandbox Code Playgroud)
我的问题是,当我调用signInManager.PasswordSignInAsync
它时,包含带有身份验证令牌的cookie来响应.但我只想在标题中使用JwtBearer.有没有选项如何禁用cookie SignInManager
?
c# cookies asp.net-identity asp.net-core asp.net-core-webapi