1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-02 10:12:16 -05:00

Removed PhishingDomains policy

This commit is contained in:
Conner Turnbull 2025-04-30 07:52:15 -04:00
parent de248609f1
commit 95db2c9aa7
No known key found for this signature in database

View File

@ -145,14 +145,6 @@ public class Startup
(c.Value.Contains(ApiScopes.Api) || c.Value.Contains(ApiScopes.ApiSecrets)) (c.Value.Contains(ApiScopes.Api) || c.Value.Contains(ApiScopes.ApiSecrets))
)); ));
}); });
config.AddPolicy("PhishingDomains", policy =>
{
policy.RequireAuthenticatedUser();
policy.RequireAssertion(ctx =>
ctx.User.HasClaim(c => c.Type == JwtClaimTypes.Scope &&
(c.Value == ApiScopes.ApiLicensing || c.Value == ApiScopes.Api))
);
});
}); });
services.AddScoped<AuthenticatorTokenProvider>(); services.AddScoped<AuthenticatorTokenProvider>();