Using Azure AD Device Code Flow with PowerShell

Azure AD supports OAuth 2.0 Device Flow for Browserless and Input Constraint devices, as described here; https://tools.ietf.org/html/draft-ietf-oauth-device-flow-07 Assuming you do not want to, or cannot, use ADAL in PowerShell, you can script this flow entirely in native PowerShell. $clientId = "1950a258-227b-4e31-a9cf-717495945fc2" # This is the standard Client Identifier for Windows Azure PowerShell $redirectUrl = [System.Uri]"urn:ietf:wg:oauth:2.0:oob"…


Managing Azure MFA Server with PowerShell

Do you have Azure MFA Server on-premises and want to manage it through PowerShell? Keep reading! If you’re using Azure MFA (completely in the Cloud), this is not for you. Sorry.


Base32 Encoding and Decoding in C#

You might have to do some Base32 Encoding or Decoding in C# (or PowerShell). Here’s a simple .NET implementation in C# you can use! using System; using System.Linq; using System.Text; public static class Base32 { /// <summary> /// The different characters allowed in Base32 encoding. /// </summary> /// <remarks> /// This is a 32-character subset…