bitScry

  • Home
  • About
  • Blog
  • Contact

AAD

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
  • Killing a Process Locking Port on a Mac
  • Mocking Hangfire BackgroundClient Jobs
  • Running Shinobi CCTV on a Raspberry Pi
  • Visual Studio CoreCLR Error
  • Adding Healthchecks to a .NET Core 6 API
Tag Cloud

.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 GZip HTML IP Address JavaScript jQuery JSON List MVC MVC 6 Newtonsoft RestSharp Serilog SQL SSDT Stored Procedure Stream String Table Table Storage 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, 1 year18 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, 1 year6 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, 2 years21 April 2020 ago
Azure

Azure Storage Authentication Using Managed Service Identities

I usually access Azure Blob Storage by using a SAS key but I am trying to move everything over to KeyVault and Managed Service Identities (MSI) to improve security and secret management. During this process I kept on receiving the following error. I could connect to the container using my Read more…

By Shinigami, 3 years5 December 2019 ago
Azure

Disabling Signup in the Azure API Management Developer Portal

I’ve recently started getting to grips with the API Management service in Azure which seems to be a good way of managing access to resources and to document their usage. Part of this is the Developer Portal which acts as a centralized store of knowledge for using your APIs which Read more…

By Shinigami, 3 years7 November 2019 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, 3 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, 4 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, 4 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, 4 years1 June 2018 ago

Posts navigation

1 2 Next
  • Facebook
  • Twitter
  • Instagram
  • Email
Hestia | Developed by ThemeIsle