Requesting Microsoft Defender HTTP API with .NET and Refit
The Microsoft Defender API - or Azure Security Center API - is an interface to obtain security-related information from its M365 or Azure tenant.
Read Blog PostThe Microsoft Defender API - or Azure Security Center API - is an interface to obtain security-related information from its M365 or Azure tenant.
Read Blog PostAttention: the following configuration is recommended only for testing or very trusted applications, since username and password could be intercepted (since they are entered directly).
Read Blog Post
Parsing HTML with .NET can be a useful skill for any developer working on web applications or data analysis projects. One tool that can be particularly helpful in these scenarios is HtmlAgilityPack , an open-source HTML parser library for .NET. In this blog post, we’ll go over how to use HtmlAgilityPack to parse HTML and extract data from it in a .NET application.
Read Blog PostASP.NET Core provides a built-in mechanism for configuring an application’s options using the Options pattern. This pattern allows you to define a class to represent the options you want to configure and then bind those options to values from a variety of sources, such as configuration files, environment variables or command-line arguments.
Read Blog PostWriting JSON files asynchronously is a useful technique for improving the performance and scalability of your application. By using an asynchronous approach, you can write JSON data to a file without blocking the main thread, allowing your application to continue running smoothly and respond to user input.
Read Blog PostWriting XML files asynchronously is a useful technique for improving the performance and scalability of your application. By using an asynchronous approach, you can write XML data to a file without blocking the main thread, allowing your application to continue running smoothly and respond to user input.
Read Blog PostActivityPub is an open, decentralized social networking protocol that allows users to share content and interact with each other across the internet. It is based on the concept of the Activity Stream, which is a standard format for representing activities or events that happen on a social networking site.
Read Blog PostFirst, you need to install the NuGet Package System.DirectoryServices.AccountManagement
Now you can open a context and get all members of the built-in group “Administrators”
Read Blog PostTo list the local administator accounts, you can just use the group membership command
1Get-LocalGroupMember -Group "Administrators"
1ObjectClass Name PrincipalSource
2----------- ---- ---------------
3User MyPC\Administrator Local
4User MyPC\Ben MicrosoftAccount
Often you have the requirement that you need or want to add additional claims to a token - either the, ID token or the access token. This is especially useful when one needs an additional custom enrichment that is not available at the time of token creation.
Read Blog Post