Auth0 Home Blog Docs

Implementing Microservices with gRPC and .NET Core 3.0

Check out this tutorial on what gRPC is and how you can use it in .NET Core 3.0 to build efficient microservices.

Read on :rocket:

1 Like

Let us know your thoughts and opinions once you have a chance to go through the article!

I was hoping to see how you would secure a gRPC connection with Auth0. That would make sense to me for an article coming from Auth0. Currently it’s just another tutorial on how to use gRPC.

2 Likes

Hey there @tvdh! That’s a good thought! Let me tag here @andrea.chiarelli the author of the article to see if we have any plans of releasing the kind of content you mentioned. Thank you!

1 Like

Hi @tvdh,
You are right. This is just a tutorial on using gRPC in .NET Core with the new native support.
Focusing on authentication with gRPC could be the topic of a future article.
Thanks for your contribution.

2 Likes

We’ll let you know @tvdh once we have such article!

1 Like

I’m trying to secure .NET Core wiht Auth0, but the cord on the blog is not working. Here comes my error when I dotnet run on gRPC service.

Startup.cs(17,40): error CS0103: 現在のコンテキストに ‘Configuration’ という名前は存在しません。 [/Users/hisashiyamaguchi/grpc-dotnet/CreditRatingService/CreditRatingService.csproj]
Startup.cs(20,71): error CS1061: ‘object’ に ‘AuthenticationScheme’ の定義が含まれておらず、型 ‘object’ の最初の引数を受け付けるアクセス可能な拡張メソッド ‘AuthenticationScheme’ が見つかりませんでした。using ディレクティブまたはアセンブリ参照が不足していないことを確認してください。 [/Users/hisashiyamaguchi/grpc-dotnet/CreditRatingService/CreditRatingService.csproj]
Startup.cs(21,68): error CS1061: ‘object’ に ‘AuthenticationScheme’ の定義が含まれておらず、型 ‘object’ の最初の引数を受け付けるアクセス可能な拡張メソッド ‘AuthenticationScheme’ が見つかりませんでした。using ディレクティブまたはアセンブリ参照が不足していないことを確認してください。 [/Users/hisashiyamaguchi/grpc-dotnet/CreditRatingService/CreditRatingService.csproj]

ビルドに失敗しました。ビルド エラーを修正して、もう一度実行してください。

I’m sorry it’s Japanese, but it seems it’s needed to include further packages on gRPC service.

Hi @hisashiyamaguchi,
The blog post doesn’t cover the integration of gRPC with Auth0.
Maybe you are trying to apply to gRPC the standard approach used for Web APIs, right? If so, it doesn’t work.
I intend to write a blog post about authentication and authorization with gRPC, but currently I don’t know when it will be possible.
Please, stay tuned. I will let you know here when that blog post will be published.