mirror of
https://github.com/bitwarden/mobile
synced 2026-01-07 19:13:19 +00:00
[SSO] Auto enroll during set password (#1520)
* [SSO] Auto enroll during set password * Updated with requested changes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Bit.Core.Enums;
|
||||
using System.Data.Common;
|
||||
using Bit.Core.Enums;
|
||||
using Bit.Core.Models.Response;
|
||||
|
||||
namespace Bit.Core.Models.Data
|
||||
@@ -27,6 +28,7 @@ namespace Bit.Core.Models.Data
|
||||
MaxCollections = response.MaxCollections;
|
||||
MaxStorageGb = response.MaxStorageGb;
|
||||
Permissions = response.Permissions ?? new Permissions();
|
||||
Identifier = response.Identifier;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
@@ -47,5 +49,6 @@ namespace Bit.Core.Models.Data
|
||||
public short? MaxCollections { get; set; }
|
||||
public short? MaxStorageGb { get; set; }
|
||||
public Permissions Permissions { get; set; } = new Permissions();
|
||||
public string Identifier { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Bit.Core.Enums;
|
||||
using System.Data.Common;
|
||||
using Bit.Core.Enums;
|
||||
using Bit.Core.Models.Data;
|
||||
|
||||
namespace Bit.Core.Models.Domain
|
||||
@@ -27,6 +28,7 @@ namespace Bit.Core.Models.Domain
|
||||
MaxCollections = obj.MaxCollections;
|
||||
MaxStorageGb = obj.MaxStorageGb;
|
||||
Permissions = obj.Permissions ?? new Permissions();
|
||||
Identifier = obj.Identifier;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
@@ -47,6 +49,7 @@ namespace Bit.Core.Models.Domain
|
||||
public short? MaxCollections { get; set; }
|
||||
public short? MaxStorageGb { get; set; }
|
||||
public Permissions Permissions { get; set; } = new Permissions();
|
||||
public string Identifier { get; set; }
|
||||
|
||||
public bool CanAccess
|
||||
{
|
||||
|
||||
7
src/Core/Models/Domain/ResetPasswordPolicyOptions.cs
Normal file
7
src/Core/Models/Domain/ResetPasswordPolicyOptions.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Bit.Core.Models.Domain
|
||||
{
|
||||
public class ResetPasswordPolicyOptions
|
||||
{
|
||||
public bool AutoEnrollEnabled { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Bit.Core.Models.Request
|
||||
{
|
||||
public class OrganizationUserResetPasswordEnrollmentRequest
|
||||
{
|
||||
public string ResetPasswordKey { get; set; }
|
||||
}
|
||||
}
|
||||
8
src/Core/Models/Response/OrganizationKeysResponse.cs
Normal file
8
src/Core/Models/Response/OrganizationKeysResponse.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Bit.Core.Models.Response
|
||||
{
|
||||
public class OrganizationKeysResponse
|
||||
{
|
||||
public string PrivateKey { get; set; }
|
||||
public string PublicKey { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -24,5 +24,6 @@ namespace Bit.Core.Models.Response
|
||||
public OrganizationUserType Type { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public Permissions Permissions { get; set; } = new Permissions();
|
||||
public string Identifier { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user