1631786ce2
Add push contracts, provider delivery and channel diagnostics. Link email channels to services and document migration and validation. Ref: IT-1074
18 lines
519 B
C#
18 lines
519 B
C#
using System.Security.Cryptography;
|
|
using System.Text.Json;
|
|
|
|
namespace HrynCo.NotificationService.Web.IntegrationTests;
|
|
|
|
internal static class PushChannelTestCredentials
|
|
{
|
|
public static string Create(string projectId = "test-project")
|
|
{
|
|
using var rsa = RSA.Create(2048);
|
|
return JsonSerializer.Serialize(new
|
|
{
|
|
type = "service_account", project_id = projectId,
|
|
client_email = "test@example.invalid", private_key = rsa.ExportPkcs8PrivateKeyPem()
|
|
});
|
|
}
|
|
}
|