Skip to content

Instantly share code, notes, and snippets.

@napstar
napstar / README.md
Created December 13, 2020 02:06 — forked from JaimeStill/README.md
ASP.NET Core Active Directory Integration

Active Directory Authentication

This will provide an example of integrating Active Directory authentication in an ASP.NET Core app.

Note, you'll need to be running on a Windows domain with Visual Studio debugging in IIS Express for this to work.

Setup

In launchSettings.json, you'll want to modify iisSettings by turning on windowsAuthentication:

@napstar
napstar / README.md
Created December 13, 2020 02:06 — forked from JaimeStill/README.md
Active Directory Authorization Workflow
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
#myImg {
border-radius: 5px;
cursor: pointer;