@ -6,7 +6,10 @@ using Bit.Core;
@@ -6,7 +6,10 @@ using Bit.Core;
usingBit.Core.Auth.Enums;
usingBit.Core.Auth.Identity;
usingBit.Core.Auth.Models;
usingBit.Core.Auth.Models.Api.Response;
usingBit.Core.Auth.Models.Business.Tokenables;
usingBit.Core.Auth.Models.Data;
usingBit.Core.Auth.Repositories;
usingBit.Core.Context;
usingBit.Core.Entities;
usingBit.Core.Enums;
@ -43,6 +46,8 @@ public abstract class BaseRequestValidator<T> where T : class
@@ -43,6 +46,8 @@ public abstract class BaseRequestValidator<T> where T : class
@ -58,10 +63,11 @@ public abstract class BaseRequestValidator<T> where T : class
@@ -58,10 +63,11 @@ public abstract class BaseRequestValidator<T> where T : class
@ -79,6 +85,8 @@ public abstract class BaseRequestValidator<T> where T : class
@@ -79,6 +85,8 @@ public abstract class BaseRequestValidator<T> where T : class
@ -199,6 +207,7 @@ public abstract class BaseRequestValidator<T> where T : class
@@ -199,6 +207,7 @@ public abstract class BaseRequestValidator<T> where T : class
@ -300,6 +309,7 @@ public abstract class BaseRequestValidator<T> where T : class
@@ -300,6 +309,7 @@ public abstract class BaseRequestValidator<T> where T : class
@ -572,4 +582,53 @@ public abstract class BaseRequestValidator<T> where T : class
@@ -572,4 +582,53 @@ public abstract class BaseRequestValidator<T> where T : class
@ -27,8 +23,6 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@@ -27,8 +23,6 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@ -44,7 +38,6 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@@ -44,7 +38,6 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
ILogger<CustomTokenRequestValidator>logger,
ICurrentContextcurrentContext,
GlobalSettingsglobalSettings,
IPolicyRepositorypolicyRepository,
ISsoConfigRepositoryssoConfigRepository,
IUserRepositoryuserRepository,
IPolicyServicepolicyService,
@ -52,12 +45,10 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@@ -52,12 +45,10 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@ -96,7 +87,7 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@@ -96,7 +87,7 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@ -110,23 +101,9 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@@ -110,23 +101,9 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
}
}
// Attempts to find ssoConfigData for a given validate request subject
// this is actually guarenteed to pretty often be null, because more than just sso login requests will come
@ -141,36 +118,30 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@@ -141,36 +118,30 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@ -198,29 +169,4 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
@@ -198,29 +169,4 @@ public class CustomTokenRequestValidator : BaseRequestValidator<CustomTokenReque
context.Result.IsError=true;
context.Result.CustomResponse=customResponse;
}
/// <summary>
/// Used to create a list of all possible ways the newly authenticated user can decrypt their vault contents
@ -37,16 +38,17 @@ public class ResourceOwnerPasswordValidator : BaseRequestValidator<ResourceOwner
@@ -37,16 +38,17 @@ public class ResourceOwnerPasswordValidator : BaseRequestValidator<ResourceOwner
@ -166,6 +168,11 @@ public class ResourceOwnerPasswordValidator : BaseRequestValidator<ResourceOwner
@@ -166,6 +168,11 @@ public class ResourceOwnerPasswordValidator : BaseRequestValidator<ResourceOwner
@ -65,6 +65,7 @@ public class IdentityServerTests : IClassFixture<IdentityApplicationFactory>
@@ -65,6 +65,7 @@ public class IdentityServerTests : IClassFixture<IdentityApplicationFactory>
@ -635,6 +636,16 @@ public class IdentityServerTests : IClassFixture<IdentityApplicationFactory>
@@ -635,6 +636,16 @@ public class IdentityServerTests : IClassFixture<IdentityApplicationFactory>