Skip to content

richardsonjf/grpc-ad-mock

 
 

Repository files navigation

gRPC ActiveDirectory Mock

This is a conceptual repo that may or may not pan out. It is certainly a work in progress, so take all of this as experimental.

See gRPC on .NET to understand how gRPC works in .NET.

Overview

Back to Top

Working out how to setup a standalone ASP.NET Core server that internally handles ActiveDirectory pass-through Authentication and exposes an abstract interface via gRPC API.

The ultimate goal is to provide pass-through ActiveDirectory authentication in Identity.Server through the Identity.Core library.

Identity.Client can then interface with the gRPC API and be injected as a service into an ASP.NET Core app.

Middleware could then be developed to insert the identity information into the HttpContext and additional middleware could synchronize identity with the app database.

A Controller could then inject IdentityClient to interact with the avaiable ActiveDirectory functions exposed through the gRPC API.

Instructions

Back to Top

Before running any of the examples, ensure the Identity.Server project is running.

To test all of the features of the gRPC API, run the App.Cli project.

To test the ASP.NET Core middleware interface with the gRPC API, run the App.Api project and navigate to https://localhost:7000/swagger

image

GetCurrentUser

Tasks

Each of the three projects have task configurations in VS Code:

  • run-identity
  • run-api
  • run-cli

Debugging

Each of the three projects have debug profiles in VS Code:

  • Identity Server
  • API App
  • CLI App

image

Back to Top

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%