mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[PM-5216] User and Organization Duo Request and Response Model refactor (#4126)
* inital changes * add provider GatewayType migrations * db provider migrations * removed duo migrations added v2 metadata to duo response * removed helper scripts * remove signature from org duo * added backward compatibility for Duo v2 * added tests for duo request + response models * refactors to TwoFactorController * updated test methods to be compartmentalized by usage * fix organization add duo * Assert.Empty() fix for validator
This commit is contained in:
2580
util/MySqlMigrations/Migrations/20240507185445_UpdateProviderGatewayType.Designer.cs
generated
Normal file
2580
util/MySqlMigrations/Migrations/20240507185445_UpdateProviderGatewayType.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Bit.MySqlMigrations.Migrations;
|
||||
|
||||
/// <inheritdoc />
|
||||
public partial class UpdateProviderGatewayType : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "GatewayType",
|
||||
table: "Provider",
|
||||
newName: "Gateway");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Gateway",
|
||||
table: "Provider",
|
||||
newName: "GatewayType");
|
||||
}
|
||||
}
|
@ -276,15 +276,15 @@ namespace Bit.MySqlMigrations.Migrations
|
||||
b.Property<bool>("Enabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<byte?>("Gateway")
|
||||
.HasColumnType("tinyint unsigned");
|
||||
|
||||
b.Property<string>("GatewayCustomerId")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("GatewaySubscriptionId")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<byte?>("GatewayType")
|
||||
.HasColumnType("tinyint unsigned");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
|
Reference in New Issue
Block a user