mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
Auth/PM-12613 - Registration with Email Verification - Provider Invite Flow (#4917)
* PM-12613 - Add RegisterUserViaProviderInviteToken flow (needs manual, unit, and integration tests) * PM-12613 - RegisterUserCommandTests - test register via provider inv * PM-12613 - AccountsControllerTests.cs - Add integration test for provider * PM-12613 - Remove comment * PM-12613 - Add temp logging to help debug integration test failure in pipeline * PM-12613 - WebApplicationFactoryBase.cs - add ConfigureServices * PM-12613 - AccountsControllerTests.cs - refactor test to sidestep encryption * PM-12613 - Per PR feedback, refactor AccountsController.cs and move token type checking into request model. * PM-12613 - Remove debug writelines * PM-12613 - Add RegisterFinishRequestModelTests
This commit is contained in:
@ -57,6 +57,16 @@ public abstract class WebApplicationFactoryBase<T> : WebApplicationFactory<T>
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Allows you to add your own services to the application as required.
|
||||
/// </summary>
|
||||
/// <param name="configure">The service collection you want added to the test service collection.</param>
|
||||
/// <remarks>This needs to be ran BEFORE making any calls through the factory to take effect.</remarks>
|
||||
public void ConfigureServices(Action<IServiceCollection> configure)
|
||||
{
|
||||
_configureTestServices.Add(configure);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add your own configuration provider to the application.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user