mirror of
https://github.com/bitwarden/server.git
synced 2025-05-28 23:04:50 -05:00
requested changes
This commit is contained in:
parent
39a81af3e9
commit
f46023f2f5
@ -4,7 +4,7 @@ namespace Bit.Core.Models.Api
|
|||||||
{
|
{
|
||||||
public class SsoConfigRequestModel
|
public class SsoConfigRequestModel
|
||||||
{
|
{
|
||||||
public long Id { get; set; }
|
public long? Id { get; set; }
|
||||||
public bool Enabled { get; set; }
|
public bool Enabled { get; set; }
|
||||||
public Guid OrganizationId { get; set; }
|
public Guid OrganizationId { get; set; }
|
||||||
public string Data { get; set; }
|
public string Data { get; set; }
|
||||||
|
@ -19,7 +19,7 @@ namespace Bit.Core.Models.Api
|
|||||||
Data = ssoConfig.Data;
|
Data = ssoConfig.Data;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long Id { get; set; }
|
public long? Id { get; set; }
|
||||||
public bool Enabled { get; set; }
|
public bool Enabled { get; set; }
|
||||||
public Guid OrganizationId { get; set; }
|
public Guid OrganizationId { get; set; }
|
||||||
public string Data { get; set; }
|
public string Data { get; set; }
|
||||||
|
@ -4,7 +4,7 @@ namespace Bit.Core.Models.Table
|
|||||||
{
|
{
|
||||||
public class SsoConfig
|
public class SsoConfig
|
||||||
{
|
{
|
||||||
public long Id { get; set; }
|
public long? Id { get; set; }
|
||||||
public bool Enabled { get; set; } = true;
|
public bool Enabled { get; set; } = true;
|
||||||
public Guid OrganizationId { get; set; }
|
public Guid OrganizationId { get; set; }
|
||||||
public string Data { get; set; }
|
public string Data { get; set; }
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
CREATE PROCEDURE [dbo].[SsoConfig_Create]
|
CREATE PROCEDURE [dbo].[SsoConfig_Create]
|
||||||
@Id BIGINT,
|
@Id BIGINT OUTPUT,
|
||||||
@Enabled BIT,
|
@Enabled BIT,
|
||||||
@OrganizationId UNIQUEIDENTIFIER,
|
@OrganizationId UNIQUEIDENTIFIER,
|
||||||
@Data NVARCHAR(MAX),
|
@Data NVARCHAR(MAX),
|
||||||
@ -8,6 +8,7 @@
|
|||||||
AS
|
AS
|
||||||
BEGIN
|
BEGIN
|
||||||
SET NOCOUNT ON
|
SET NOCOUNT ON
|
||||||
|
SET @Id = SCOPE_IDENTITY();
|
||||||
|
|
||||||
INSERT INTO [dbo].[SsoConfig]
|
INSERT INTO [dbo].[SsoConfig]
|
||||||
(
|
(
|
||||||
|
@ -34,7 +34,7 @@ END
|
|||||||
GO
|
GO
|
||||||
|
|
||||||
CREATE PROCEDURE [dbo].[SsoConfig_Create]
|
CREATE PROCEDURE [dbo].[SsoConfig_Create]
|
||||||
@Id BIGINT,
|
@Id BIGINT OUTPUT,
|
||||||
@Enabled BIT,
|
@Enabled BIT,
|
||||||
@OrganizationId UNIQUEIDENTIFIER,
|
@OrganizationId UNIQUEIDENTIFIER,
|
||||||
@Data NVARCHAR(MAX),
|
@Data NVARCHAR(MAX),
|
||||||
@ -43,6 +43,7 @@ CREATE PROCEDURE [dbo].[SsoConfig_Create]
|
|||||||
AS
|
AS
|
||||||
BEGIN
|
BEGIN
|
||||||
SET NOCOUNT ON
|
SET NOCOUNT ON
|
||||||
|
SET @Id = SCOPE_IDENTITY();
|
||||||
|
|
||||||
INSERT INTO [dbo].[SsoConfig]
|
INSERT INTO [dbo].[SsoConfig]
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user