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.
In launchSettings.json
, you'll want to modify iisSettings
by turning on windowsAuthentication
:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--palette-primary-shade-30: 184, 216, 255; | |
--palette-primary-shade-20: 152, 198, 255; | |
--palette-primary-shade-10: 121, 181, 255; | |
--palette-primary: 0, 120, 212; | |
--palette-primary-tint-10: 82, 143, 217; | |
--palette-primary-tint-20: 73, 126, 191; | |
--palette-primary-tint-30: 55, 96, 145; | |
--palette-primary-tint-40: 34, 59, 89; | |
--palette-neutral-100: 255, 255, 255; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script can be used to generate a ca-cert.crt file that can be used by | |
# Unix-based utilities like curl, git, ... | |
# | |
# It allows you to synchronize the root certificates (CA) based on the | |
# certificates installed in your Windows certification stores. You can also | |
# get a list from Mozilla, but I think it's convenient to have the same CA | |
# certificates in all tools. | |
# | |
# Some examples on how to use this script: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from suds import client | |
from suds.wsse import Security, UsernameToken | |
from suds.sax.text import Raw | |
from suds.sudsobject import asdict | |
from suds import WebFault | |
''' | |
Given a Workday Employee_ID, returns the last name of that employee. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# size of swapfile in megabytes | |
swapsize=8000 | |
# does the swap file already exist? | |
grep -q "swapfile" /etc/fstab | |
# if not then create it | |
if [ $? -ne 0 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Converts a PowerShell object to a Markdown table. | |
.EXAMPLE | |
$data | ConvertTo-Markdown | |
.EXAMPLE | |
ConvertTo-Markdown($data) | |
#> | |
Function ConvertTo-Markdown { | |
[CmdletBinding()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$result | Add-Member -MemberType ScriptMethod ExpandString -Value { | |
[cmdletbinding()] | |
param( | |
[Parameter( | |
Mandatory=$true)] | |
[string] | |
$unexpandedValue | |
) | |
process{ | |
if($this.ProjectInstance){ |