diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index e1d68cfa69..e7420eaa98 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -101,13 +101,13 @@ namespace Bit.Api .AddTokenProvider>(TokenOptions.DefaultEmailProvider); var jwtIdentityOptions = provider.GetRequiredService>().Value; - services.AddAuthorization(auth => + services.AddAuthorization(config => { - auth.AddPolicy("Application", new AuthorizationPolicyBuilder() + config.AddPolicy("Application", new AuthorizationPolicyBuilder() .AddAuthenticationSchemes(JwtBearerDefaults.AuthenticationScheme‌​) .RequireAuthenticatedUser().RequireClaim(ClaimTypes.AuthenticationMethod, jwtIdentityOptions.AuthenticationMethod).Build()); - auth.AddPolicy("TwoFactor", new AuthorizationPolicyBuilder() + config.AddPolicy("TwoFactor", new AuthorizationPolicyBuilder() .AddAuthenticationSchemes(JwtBearerDefaults.AuthenticationScheme) .RequireAuthenticatedUser().RequireClaim(ClaimTypes.AuthenticationMethod, jwtIdentityOptions.TwoFactorAuthenticationMethod).Build()); }); @@ -120,13 +120,16 @@ namespace Bit.Api services.AddScoped(); // Cors - services.AddCors(o => o.AddPolicy("All", policy => policy.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin())); + services.AddCors(config => + { + config.AddPolicy("All", policy => policy.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin()); + }); // MVC - services.AddMvc(o => + services.AddMvc(config => { - o.Filters.Add(new ExceptionHandlerFilterAttribute()); - o.Filters.Add(new ModelStateValidationFilterAttribute()); + config.Filters.Add(new ExceptionHandlerFilterAttribute()); + config.Filters.Add(new ModelStateValidationFilterAttribute()); }); } diff --git a/src/Core/Repositories/DocumentDB/Stored Procedures/dirtyCiphers.js b/src/Core/Repositories/DocumentDB/Stored Procedures/dirtyCiphers.js index 0af4884bd3..2c14370f8a 100644 --- a/src/Core/Repositories/DocumentDB/Stored Procedures/dirtyCiphers.js +++ b/src/Core/Repositories/DocumentDB/Stored Procedures/dirtyCiphers.js @@ -1,4 +1,6 @@ -function dirtyCiphers(userId) { +// Update all ciphers for a user to be dirty + +function dirtyCiphers(userId) { var collection = getContext().getCollection(); var collectionLink = collection.getSelfLink(); var response = getContext().getResponse();