Skip to content

sanderaernouts/GrpcAuthDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gRPC AzureAD Authentication

A demo application using ASP.NET core 3.0 preview 4 to host a gRPC service. Authentication is setup with JWT tokens from Azure AD.

Run the example

  1. open GrpcAuthDemo\GrpcAuthDemo.Server\appsettings.json and replace Domain, TenantId and ClientId with the values of an app registration from your own Azure AD tenant.
  2. rebuild the solution
  3. run the server application

Run the client

Run the client application from a command prompt:

GrpcAuthDemo\GrpcAuthDemo.Client\bin\Debug\netcoreapp3.0\GrpcAuthDemo.Client.exe <server port> <use ssl (true/false)> <JWT token>

For example to run without SSL:

GrpcAuthDemo\GrpcAuthDemo.Client\bin\Debug\netcoreapp3.0\GrpcAuthDemo.Client.exe 50051 false <JWT token>

Credits

This example is based on this blog post by Damien Bod

About

An ASP.NET core 3.0 example application using Azure AD to autheticate gRPC calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages