Skip to main content

Posts

Part - 8 | Asp.Net Core Identity Series[.NET 7] | Microsoft Account Authentication

The main objectives of this article are: Implementing Microsoft Account Authentication. Install Microsoft Account Authentication NuGet Package: Let's install the required package for Microsoft Account Authentication Visual Studio 2022: Install-Package Microsoft.AspNetCore.Authentication.MicrosoftAccount -Version 7.0.4 Visual Studio Code: dotnet add package Microsoft.AspNetCore.Authentication.MicrosoftAccount --version 7.0.4 Register Our App With Microsoft Azure Portal: To enable Microsoft authentication to our application, we have to register our app into the Microsoft Azure Portal. So following are steps to resisting the app with the Microsoft portal. (Step 1) Go to the Azure Portal 'https://portal.azure.com/'. Then select 'App Registration.' (Step 2) On the 'App Registration' page, select the 'New registration' button. (Step 3) Provide a 'Display Name' and then choose 'Supported account types'. (Step 4) Select 'Web'

Part - 7 | Asp.Net Core Identity Series[.NET 7] | Twitter Authentication

The main objectives of this article are: Implementing Twitter Authentication. Install Twitter Authentication NuGet Package: Let's install the required package for Twitter authentication. Visual Studio 2022: Install-Package Microsoft.AspNetCore.Authentication.Twitter -Version 7.0.4 Visual Studio Code: dotnet add package Microsoft.AspNetCore.Authentication.Twitter --version 7.0.4 Register Our App With Twitter: To enable Twitter authentication to our application we have to register our API with Twitter. So following are steps to register with Twitter. (Step 1) Register with 'Twitter Developers' section and then navigate to the dashboard page 'https://developer.twitter.com/en/portal/dashboard' (Step 2) Click on 'Create Poject' on the dashboard page. (Step 3) Specify the project name and then click on the 'Next' button. (Step 4) Select a use case and then click on the 'Next' button (Step 5) Provide some project description and then click o

Part - 6 | Asp.Net Core Identity Series[.NET 7] | Facebook Authentication

The main objective of this article is: Implementing Facebook Authentication Install Facebook Authentication NuGet Package: Let's install the required package for Facebook authentication. Visual Studio 2022: Install-Package Microsoft.AspNetCore.Authentication.Facebook -Version 7.0.4 Visual Studio Code: Install-Package Microsoft.AspNetCore.Authentication.Facebook -Version 7.0.4 Register Our App With Facebook: To enable Facebook authentication we have to register our API project with Facebook. So following are Facebook registration steps. (Step 1) Go to the Facebook developer page 'https://developers.facebook.com/apps/'. (Step 2) Go to the 'My Apps' menu and click on the 'Create App' button. (Step 3) In the 'Create An App' section, choose the 'Consumer' option and finally click on the 'Next' button. (Step 4) Enter a name for the 'Add an app name' and click on 'Create app'. (Step 5) On 'Add products to your app

A Small Demo On OData(v8) In .NET 7 API Application

In this article, we are going to implement a sample on OData in .NET7 API application. OData: The OData(Open Data Protocol) is an application-level protocol for interacting with data via the restful interface. OData supports the description of data models, editing, and querying of data according to those models. OData query features are: $select $orderBy $filter $skip $count $expand Sample SQL Table Scripts: Let's run the below sample SQL script to create a table like 'Employee'. Sample SQL Script: Create Table Employee( Id INT IDENTITY(1,1) NOT NULL, FirstName VARCHAR(200) NULL, LastName VARCHAR(200) NULL, Salary Decimal(18,2) NULL, JobRole VARCHAR(50) NULL CONSTRAINT PK_Employee PRIMARY KEY (Id) ) Create .NET7 Web API Application: Let's create the .NET 7 Web API application to accomplish our demo. Here to create .NET 7 application we use IDE's(editors) either Visual Studio 2022 or Visual Studio Code(Using .NET CLI command). In this demo, we are going to use