mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-27 02:37:08 +01:00
Fix: Local client factory when no user is specified would fail on some edge case auth scenarios
This commit is contained in:
parent
c12e08ef01
commit
e511538ba6
1 changed files with 4 additions and 1 deletions
|
@ -176,7 +176,10 @@ namespace BTCPayServer.Controllers.Greenfield
|
|||
else
|
||||
{
|
||||
context.User =
|
||||
new ClaimsPrincipal(new ClaimsIdentity(new List<Claim>(),
|
||||
new ClaimsPrincipal(new ClaimsIdentity(new List<Claim>()
|
||||
{
|
||||
new(_identityOptions.CurrentValue.ClaimsIdentity.RoleClaimType, Roles.ServerAdmin)
|
||||
},
|
||||
$"Local{GreenfieldConstants.AuthenticationType}"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue