fix: login
Some checks failed
Some checks failed
This commit is contained in:
parent
7b78f11b72
commit
fb466a71b8
@ -163,10 +163,11 @@ if (!string.IsNullOrEmpty(mongoConnectionString))
|
|||||||
{
|
{
|
||||||
Log.Information("Configuring DataProtection to persist keys in MongoDB for Swarm compatibility");
|
Log.Information("Configuring DataProtection to persist keys in MongoDB for Swarm compatibility");
|
||||||
|
|
||||||
|
var dpDbName = MongoUrl.Create(mongoConnectionString).DatabaseName;
|
||||||
builder.Services.AddDataProtection()
|
builder.Services.AddDataProtection()
|
||||||
.SetApplicationName("QRRapido")
|
.SetApplicationName("QRRapido")
|
||||||
.PersistKeysToMongoDb(
|
.PersistKeysToMongoDb(
|
||||||
() => new MongoClient(mongoConnectionString).GetDatabase("QRRapidoDB"),
|
() => new MongoClient(mongoConnectionString).GetDatabase(dpDbName),
|
||||||
"DataProtectionKeys");
|
"DataProtectionKeys");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user