fix auth for grpc calls

This commit is contained in:
Stanley Dimant
2022-08-24 23:01:03 +02:00
parent 5736bcf074
commit 66e2b3db82
3 changed files with 19 additions and 5 deletions

View File

@@ -49,7 +49,8 @@ namespace MareSynchronosShared.Authentication
var claims = new List<Claim>
{
new(ClaimTypes.NameIdentifier, uid)
new(ClaimTypes.NameIdentifier, uid),
new(ClaimTypes.Authentication, authHeader)
};
var identity = new ClaimsIdentity(claims, nameof(SecretKeyGrpcAuthenticationHandler));