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:
parent
de248609f1
commit
95db2c9aa7
@ -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>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user