bitScry

  • Home
  • Blog
  • Contact
  • GitHub

Azure Active Directory

About This Site

This is a blog to help me remember some of the coding challenges I’ve faced and hopefully help others out if they’re suffering the same problems.

Recent Posts
  • Inspecting Data in SQL Tables 4th December 2020
  • RestSharp Response Character Encoding 24th September 2020
  • RestSharp AWS S3 Authentication 18th September 2020
  • Grouping Azure Table Storage Entities 17th September 2020
  • Best Practices for Using Azure SDK with ASP.NET Core 9th September 2020
Tag Cloud
.NET .NET Core API appsettings.json ASP.NET Core Authentication Authorization Azure Azure Active Directory Azure AD Azure Function Azure Storage Blob Bootstrap C# Console Application CSS CSV DataTable Dependency Injection Dictionary Enum Extension GZip HTML Image JavaScript jQuery JSON List Middleware MVC MVC 6 Random Serilog SFTP SQL Stored Procedure Stream String Table Table Storage Tag Helper Web Application WordPress
Reading List
  • Build a Wi-Fi Scanner
  • IoT Weather Station
  • User accounts made easy with Azure
  • Install macOS High Sierra in VirtualBox
Programming

Azure Active Directory Token Caching

I’ve been working on a web portal that users Azure Active Directory (AAD) for user authentication and for requesting permissions to the Azure Graph API, the code for which is based on this sample project. This uses a library called Microsoft.Identity.Web that assists with acquiring and storing tokens, currently this Read more…

By Shinigami, 2 years2 years ago
Programming

Using Azure Key Vault in a Console Application

Azure Key Vault is a pretty handy way of centrally managing access to secrets and logging what process has requested access to them. The best way to use it is for Azure hosted resources such as Web Applications or VMs for which you can assign a managed identity to the Read more…

By Shinigami, 2 years1 year ago
Programming

Web Application – Azure AD Single Sign On

Previously I’ve used Azure AD to authenticate web application users as well as to retrieve authentication tokens for accessing Azure resources but I hadn’t tried retrieving tokens during the initial login before. It turns out that this was much trickier than I’d expected, partially because of how abstracted away the Read more…

By Shinigami, 2 years2 years ago
Programming

Azure AD – Request Too Long

I’ve been getting to grips with Azure AD authentication an part of that has involved retrieving access codes for Power BI at initial login to an authenticated web application. When I finally managed to get this working I then started getting the following error. Bad Request – Request Too Long Read more…

By Shinigami, 2 years2 years ago
Programming

Empty Sessions in Azure Web Applications

Empty Sessions in Azure Web Applications As part of a recent project I needed to embed a Power BI Dashboard in a webpage, in order to authenticate access to this dashboard Azure AD authentication was used, this directs the user to the standard Microsoft login and they are then redirected Read more…

By Shinigami, 2 years2 years ago
Programming

Exporting an Azure SQL Databases Using .NET

Exporting an Azure SQL Databases Using .NET It’s possible to export an Azure SQL database to a BACPAC file using the Azure portal and PowerShell among other methods but the documentation makes no mention of doing this directly in .NET, though happily this is also possible. The process detailed below Read more…

By Shinigami, 3 years2 years ago
Programming

Azure Active Directory Authentication in Web Applications

Azure Active Directory Authentication in Web Applications I’ve previously used “Individual User Accounts” authentication for authenticating users in web applications but as the management of users in the underlying SQL databases isn’t that simple it seemed that using Azure Active Directory to manage users might be a better option. The Read more…

By Shinigami, 3 years2 years ago
Programming

Retrieving Azure Active Directory Tokens

How to get access tokens from Azure Active Directory I’ve recently been working on a project to display Azure billing information in an internal dashboard and to send out alerts if the billing exceeds a certain amount. The first problem I had with this was that although there’s GitHub projects Read more…

By Shinigami, 4 years2 years ago
Hestia | Developed by ThemeIsle