From 1a3146f77608a526f56256063960abba4692f921 Mon Sep 17 00:00:00 2001 From: Todd Martin <106564991+trmartin4@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:15:24 -0500 Subject: [PATCH] [PM-5800] Remove feature flag checks for PasswordlessLogin (#3713) * Removed feature flag checks for PasswordlessLogin * Removed unused reference. --- src/Api/Auth/Controllers/WebAuthnController.cs | 2 -- src/Identity/Controllers/AccountsController.cs | 2 -- src/Identity/IdentityServer/WebAuthnGrantValidator.cs | 6 ------ 3 files changed, 10 deletions(-) diff --git a/src/Api/Auth/Controllers/WebAuthnController.cs b/src/Api/Auth/Controllers/WebAuthnController.cs index d36b8cf97d..437c1ba20d 100644 --- a/src/Api/Auth/Controllers/WebAuthnController.cs +++ b/src/Api/Auth/Controllers/WebAuthnController.cs @@ -13,7 +13,6 @@ using Bit.Core.Auth.UserFeatures.WebAuthnLogin; using Bit.Core.Exceptions; using Bit.Core.Services; using Bit.Core.Tokens; -using Bit.Core.Utilities; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; @@ -21,7 +20,6 @@ namespace Bit.Api.Auth.Controllers; [Route("webauthn")] [Authorize("Web")] -[RequireFeature(FeatureFlagKeys.PasswordlessLogin)] public class WebAuthnController : Controller { private readonly IUserService _userService; diff --git a/src/Identity/Controllers/AccountsController.cs b/src/Identity/Controllers/AccountsController.cs index fe91eeedeb..e6b5cfc261 100644 --- a/src/Identity/Controllers/AccountsController.cs +++ b/src/Identity/Controllers/AccountsController.cs @@ -12,7 +12,6 @@ using Bit.Core.Models.Data; using Bit.Core.Repositories; using Bit.Core.Services; using Bit.Core.Tokens; -using Bit.Core.Utilities; using Bit.SharedWeb.Utilities; using Microsoft.AspNetCore.Mvc; @@ -85,7 +84,6 @@ public class AccountsController : Controller } [HttpGet("webauthn/assertion-options")] - [RequireFeature(FeatureFlagKeys.PasswordlessLogin)] public WebAuthnLoginAssertionOptionsResponseModel GetWebAuthnLoginAssertionOptions() { var options = _getWebAuthnLoginCredentialAssertionOptionsCommand.GetWebAuthnLoginCredentialAssertionOptions(); diff --git a/src/Identity/IdentityServer/WebAuthnGrantValidator.cs b/src/Identity/IdentityServer/WebAuthnGrantValidator.cs index fed631eb36..8552265652 100644 --- a/src/Identity/IdentityServer/WebAuthnGrantValidator.cs +++ b/src/Identity/IdentityServer/WebAuthnGrantValidator.cs @@ -65,12 +65,6 @@ public class WebAuthnGrantValidator : BaseRequestValidator