ASP.NET Core

12345678910...Last
Work with GitHub repositories using Git menu of Visual Studio
Visual Studio 2019 now presents a new Git menu and improved source control experience. It is worthwhile for any beginner in ASP.NET Core 5.0 to familiarize themselves with these new features. To that end this article takes a quick look at some of the common options available as a part of the new Git experience.
Posted On : 30 Nov 2020
Use OData services in ASP.NET Core
Recently Microsoft released OData Preview 8 for ASP.NET Core 5. OData or Open Data protocol is a standard for creating REST style services that offer inbuilt querying capabilities to developers. This allows for implementing paging, sorting, and reshaping of data quickly and easily. In this article I will take you through the basics of creating an OData service in ASP.NET Core 5. We will then invoke the OData service using Postman.
Posted On : 02 Nov 2020
Integrate ASP.NET Core Identity with Microsoft account
In the previous article you learned to use Microsoft Account as an external login to your ASP.NET Core web apps. In that article you didn't use ASP.NET Core Identity in any way. The Microsoft Account alone was used in the authentication process without any local account. At times you may want to integrate the Microsoft account with a local account.
Posted On : 19 Oct 2020
Authenticate users using Microsoft account in ASP.NET Core
At times you want to integrate external logins with your ASP.NET Core applications. External logins include Microsoft accounts, Google, Facebook, or Twitter. When you use external logins, the login details such as user name and password aren't stored in your local database. They are stored in some external store and you are required to "get in touch" with that external source to authenticate your website users. In this article you will learn to integrate Microsoft Account based login mechanism in your ASP.NET Core web app.
Posted On : 12 Oct 2020
Upload files using InputFile component in Blazor
If you are tracking the development of ASP.NET Core 5, you are probably aware that RC1 of the framework is now available. One of the additions for Blazor Server and Blazor WebAssembly is the InputFile component to deal with file uploaded. In this article I am going to take a quick look at the InputFile component and discuss a possible file upload process for Blazor Server as well as Blazor WebAssembly apps.
Posted On : 28 Sep 2020
Authenticate gRPC calls in ASP.NET Core
ASP.NET Core supports creation of RPC style services using gRPC. Once created you might also want to secure them by authenticating and authorizing the service calls. To that end this article discusses a possible approach to implementing authentication in gRPC services.
Posted On : 21 Sep 2020
Integrate IdentityServer with ASP.NET Core (Part 6 - Users in Db)
In Part - 5 of this series you learned to stored IdentityServer configuration data such as identity resources, API resources, and clients into a SQL Server database. However, our sample application still uses TestUser objects to sign into the system. As you would have guessed, in a more real-world app you would like to rope in ASP.NET Core Identity to perform membership tasks. In such a case, instead of using TestUsers you would have IdentityUsers (or its subclass). Let's see how this can be accomplished in this concluding part of this series.
Posted On : 07 Sep 2020
Integrate IdentityServer with ASP.NET Core (Part 5 - Config in Db)
In Part 1, Part 2, Part 3, and Part 4 we touched upon various aspects of configuring IdentityServer, OAuth, and OIDC in ASP.NET Core Web API and MVC applications. Although our sample application is working as expected, it stores all the IdentityServer related configuration in-memory. In a more realistic app you would like to store the configuration in some persistent data store such as SQL Server database. In this part we will do just that.
Posted On : 31 Aug 2020
Integrate IdentityServer with ASP.NET Core (Part 4 - User Claims)
In Part 1 of this series we configured a few pieces about user such as name, email, address, and phone in the Server project. But in Part 2 and Part 3 we didn't use them in any way. Now it's time to do that. In this part of the series we will access user's claims first in the Web API and then in the MVC application. We will also involve these claims in the authorization process by creating a custom policy.
Posted On : 24 Aug 2020
Integrate IdentityServer with ASP.NET Core (Part 3 - MVC Application)
In Part 2 of this series you protected the Employees Web API using IdentityServer. You also invoked the Web API using Postman tool and HttpClient. In this part of the series you will create an MVC application that is protected using IdentityServer and requires valid sign-in credentials from the end users. The MVC application then invokes the same Web API by passing a security token to it.
Posted On : 17 Aug 2020
12345678910...Last


Subscribe to our newsletter

Get monthly email updates about new articles, tutorials, code samples, and how-tos getting added to our knowledge base.

  

Receive Weekly Updates