gRPC and WindowsIdentity

JT 1 Reputation point
2021-01-19T15:25:38.173+00:00

All, I’m considering moving a WCF client server app to gRPC (as recommended due to WCF end of life)

However, this looks like a tricky, as I can’t find a gRPC equivalence of

OperationContext.Current.ServiceSecurityContext.WindowsIdentity.Name;

Which is a major issue.

We’re a 100% windows shop, so I’m not bothered about portability.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,370 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,239 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Duane Arnold 3,211 Reputation points
    2021-01-19T20:55:24.727+00:00

    In what context are you trying to use a gRPC service Windows desktop or ASP.NET? Core or non Core?


  2. Duane Arnold 3,211 Reputation points
    2021-01-21T06:05:33.373+00:00

    I think you may have to consider a gRpc service using ASP.NET Core Web based solution.

    https://learn.microsoft.com/en-us/dotnet/architecture/grpc-for-wcf-developers/call-credentials

    0 comments No comments