mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
[BEEEP][SM-893] Add the ability to run SM integration tests as a service account (#3187)
* Add the ability to run SM integration tests as a service account
This commit is contained in:
@ -64,4 +64,13 @@ public class ApiApplicationFactory : WebApplicationFactoryBase<Startup>
|
||||
base.Dispose(disposing);
|
||||
SqliteConnection.Dispose();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Helper for logging in via client secret.
|
||||
/// Currently used for Secrets Manager service accounts
|
||||
/// </summary>
|
||||
public async Task<string> LoginWithClientSecretAsync(Guid clientId, string clientSecret)
|
||||
{
|
||||
return await _identityApplicationFactory.TokenFromAccessTokenAsync(clientId, clientSecret);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user