mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 21:57:22 +01:00
fix auth for grpc calls
This commit is contained in:
parent
5736bcf074
commit
66e2b3db82
3 changed files with 19 additions and 5 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue