Posted on Leave a comment

c# – LDAP – Retrieve a list of all attributes/values? – Stack Overflow

foreach (string propName in props.PropertyNames) { if (entry.Properties[propName].Value != null) { Console.WriteLine(propName + ” = ” + entry.Properties[propName].Value.ToString()); } else { Console.WriteLine(propName + ” = NULL”); } }

Source: c# – LDAP – Retrieve a list of all attributes/values? – Stack Overflow

Posted on Leave a comment

Setting And Reading Values From “appsettings.json” In .NET Core

In this article, we are going to learn how to read values from  “appsettings.json” file. You will ask why we want to read values from “appsettings.json” and what is there in “appsettings.json” that we would want to read it. The “appsettings.json” file contains configuration settings. This file is similar to the Web.config file. In this file, we mostly store global values so that we can read those in the entire application. But Web.config file is in XML format and “appsettings.json” file is JSON format. We

Source: Setting And Reading Values From “appsettings.json” In .NET Core

Posted on Leave a comment

Scaffold Identity in ASP.NET Core projects | Microsoft Docs

Scaffold Identity in ASP.NET Core projects 10/23/2018 12 minutes to read +1 By Rick Anderson ASP.NET Core 2.1 and later provides ASP.NET Core Identity as a Razor Class Library. Applications that include Identity can apply the scaffolder to selectively add the source code contained in the Identity Razor Class Library (RCL). You might want to generate source code so you can modify the code and change the behavior. For example, you could instruct the scaffolder to generate the code used in registrati

Source: Scaffold Identity in ASP.NET Core projects | Microsoft Docs

Posted on Leave a comment

Secure your ASP.NET Core 2.0 API (part 1 – issuing a JWT)

You’ve built the API but what about security?There are many reasons you might choose to expose an API from your ASP.NET Core 2.0 app: supporting windows-based software, another web application, or maybe you’re building a SAAS product and want to give advanced users some mechanism to integrate with your platform.

Source: Secure your ASP.NET Core 2.0 API (part 1 – issuing a JWT)