bitScry

  • Home
  • About
  • Blog
  • Contact

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
  • Serving Images from Blob Storage in an Azure Function
  • Redis Caching in .NET
  • Passing Environment Variables From Docker to .NET Web App
  • Retrieving Data from MySQL Stored Procedures in .NET
  • Excluding Child Properties from a List of Objects in Fluent Assertions
Tag Cloud

.NET .NET Core AAD API ASP.NET Core Authentication Authorization Azure Azure Active Directory Azure Function Azure Storage Blob Bootstrap C# Cloud Storage Console Application CSS DataTable Dependency Injection Dictionary Entity Framework Enum Extension Google HTML Image IP Address JavaScript jQuery JSON List MVC MVC 6 Newtonsoft RestSharp Serilog SQL Stored Procedure Stream Table Table Storage Test Web App Web Application WordPress

Programming

OAuth2 Authentication of Azure Functions in React

Since I wrote the post Azure Active Directory Authentication for React I discovered that the library used (react-aad-msal) is being depreciated as Microsoft are now providing their own offical library (@azure/msal-react) for these purposes. There’s good documentation of the msal-react library available on the package page as well as samples Read more…

By Shinigami, 2 years18 May 2021 ago
Programming

Azure Active Directory Authentication for React

Usually when I build a website it’s an ASP.NET Core Razor site created from Visual Studio but I’ve recently started to try to get to grips with the React framework (again within Visual Studio). This means I’m having to relearn a few of the things that I’d previously taken for Read more…

By Shinigami, 2 years6 May 2021 ago
Azure

Azure Active Directory Group Based Authorization

I’ve used Azure Active Directory (AAD) authentication and authorization in a variety of Web Apps for logins, calling external APIs (e.g. Graph API) and authorizing site area access and while authentication is reasonably simple to get working authorization has always been a bit more confusing. This is fair enough as Read more…

By Shinigami, 3 years21 April 2020 ago
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, 4 years17 July 2019 ago
Azure

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, 4 years13 February 2019 ago
Azure

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, 5 years21 September 2018 ago
Azure

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 back to the desired page afterwards. Read more…

By Shinigami, 5 years13 September 2018 ago
Azure

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 triggers a database export to a specified Read more…

By Shinigami, 5 years1 June 2018 ago
Azure

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 first step in the process is to Read more…

By Shinigami, 5 years13 December 2017 ago
Programming

Retrieving Azure Active Directory Tokens

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 for getting the rate card and billing information they’re Read more…

By Shinigami, 6 years29 March 2017 ago
  • Facebook
  • Twitter
  • Instagram
  • Email
Hestia | Developed by ThemeIsle