Authentication Support in Syncfusion ASP.NET Core Project Template: An Overview | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (180).NET Core  (28).NET MAUI  (224)Angular  (113)ASP.NET  (49)ASP.NET Core  (81)ASP.NET MVC  (87)Azure  (41)Black Friday Deal  (1)Blazor  (234)BoldSign  (14)DocIO  (24)Essential JS 2  (110)Essential Studio  (199)File Formats  (72)Flutter  (135)JavaScript  (226)Microsoft  (121)PDF  (83)Python  (1)React  (105)Streamlit  (1)Succinctly series  (131)Syncfusion  (960)TypeScript  (33)Uno Platform  (3)UWP  (3)Vue  (46)Webinar  (53)Windows Forms  (59)WinUI  (72)WPF  (162)Xamarin  (159)XlsIO  (38)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (10)Business intelligence  (55)Button  (4)C#  (163)Chart  (145)Chart of the week  (57)Cloud  (15)Company  (440)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (73)Development  (676)Doc  (7)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (7)Essential Tools  (13)Excel  (43)Extensions  (23)File Manager  (7)Gantt  (20)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (519)Mobile MVC  (9)OLAP server  (2)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (45)Performance  (13)PHP  (2)PivotGrid  (5)Predictive Analytics  (6)Report Server  (3)Reporting  (8)Reporting / Back Office  (9)Rich Text Editor  (12)Road Map  (12)Scheduler  (54)Security  (5)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (32)Solution Services  (4)Spreadsheet  (11)SQL  (15)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (113)UI  (400)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (624)What's new  (337)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Authentication Support in Syncfusion ASP.NET Core Project Template: An Overview

Authentication Support in Syncfusion ASP.NET Core Project Template: An Overview

The process of ascertaining a user’s identity and validating whether the person has access to a resource is known as authentication. By adding authentication support to your web apps, you can specify who has view access.

The Syncfusion ASP.NET Core project template provides authentication support for creating secure ASP.NET Core web apps with model-view-controller, Angular, and React templates. It supports various authentication types, namely individual accounts, Microsoft identity platform, and Windows.

Let’s see how to use the different authentications supported in the Syncfusion ASP.NET Core project template to secure your apps.


Install the Syncfusion ASP.NET Core project template extension

The Syncfusion ASP.NET Core project template is available as an extension in the Visual Studio Marketplace.

You can also directly install it from Visual Studio by navigating to Extensions -> Manage Extensions -> Online, searching for the Syncfusion ASP.NET Core Extension, and installing it.

Note: Refer to the blog Syncfusion VS Extensions Now on the Visual Studio Marketplace! to learn more about the extensions and how to install them.

Create a web app with authentication using Syncfusion ASP.NET Core project template

Follow these steps to create your web app using the Syncfusion ASP.NET Core project template in Visual Studio.

Step 1: To create the Syncfusion ASP.NET Core project, do one of the following options:

Option 1

Click Extensions -> Syncfusion –Essential Studio for ASP.NET Core –> Create New Syncfusion Project in Visual Studio. Refer to the following image.

Click Extensions, Syncfusion, Essential Studio for ASP.NET Core and Create New Syncfusion ProjectIf you’re using Visual Studio 2017, click the Syncfusion menu and choose Essential Studio for ASP.NET Core (EJ2)-> Create New Syncfusion Project. Refer to the following image.

Click on Syncfusion menu and choose Essential Studio for ASP.NET Core (EJ2) then Create New Syncfusion Project

Option 2

Open Visual Studio. Choose File –> New –> Project. The Create a new project dialog will open.

Filter the projects with the Syncfusion keyword in the search bar. You will be presented with the Syncfusion template for ASP.NET Core web apps. Select it and then click Next. Refer to the following image.

Create a new project dialogStep 2: Name the project, choose the destination location, and then click OK. The project configuration wizard will appear.

Step 3: Choose the options to configure the Syncfusion ASP.NET Core app in the project configuration dialog. Refer to the following image.

ASP.NET Core project configuration wizardProject configurations:

  • Project type: Select Syncfusion Web App, Syncfusion Web App (Model-View-Controller), Syncfusion Angular, or Syncfusion React.js.
    Select the required project type
  • .NET Core Version: Select the required .NET Core version for the project.
    Select the required .NET Core version
  • Assets From: Load the Syncfusion EJ2 assets for the ASP.NET Core project from NPM, CDN, or an installed location.

    Note: The installed location option will be available only when the Syncfusion Essential JS 2 setup has been installed.

  •  Themes: Choose a required theme from the list of themes.
    Select the required theme
  • Authentication Type: The authentication types will be listed based on the selected project type. Choose the required authentication type from the list.
    Select the required authentication type

    Note: Microsoft identity authentication and Windows authentication will not be shown for Angular and React projects.

Step 4: Click Create. The Syncfusion ASP.NET Core app will be created with the specified configuration. Refer to the following image.Created Syncfusion ASP.NET Core Application

The created Syncfusion ASP.NET Core app configures the most recent Syncfusion ASP.NET Core NuGet packages, selected style, scripts, and NPM packages to render Syncfusion components.

Step 5: The Syncfusion license registration message box will be shown if you installed the trial setup or NuGet packages. Navigate to the help topic shown in the licensing message box for instructions on generating and registering the Syncfusion license key to your project.

Now that we have configured the project, let’s see about authentication.

Authentication configuration

For the Microsoft identity platform, we need to register the newly created app in Azure Active Directory. We can obtain the tenant ID and application client ID for the Microsoft identity platform through Azure Active Directory registration.

We have to configure these ID values in the created app, and only then will authentication work in the app.

Note: You don’t need to configure the application for both the individual and Windows authentications.

Microsoft identity platform

Step 1: Go to the Azure Active Directory App registrations page and then click the Azure Active Directory App Registration link.

Step 2: Click the New Registration tab on the App registrations page.

App registrations page in Azure Active DirectoryStep 3: Provide the name of the app and set the supported account type as single tenant.

Provide the name for the applicationStep 4: Scroll down the App registrations page, set the platform as web, and provide your app Redirect URI with a signin-oidc string. E.g.: {Redirect URI}/signin-oidc. Then click Register.

Provide the Redirect URI and click on RegisterStep 5: Now our app is registered. Go to the Authentication page and select the ID tokens checkbox. Refer to the following image.

Select the Id tokens check box in the Authentication page

Step 6: Now, get the client tenant ID and application ID from the Overview page.

Get the client tenant id and application id from the overview page

Step 7: Finally, configure those client tenant and application IDs in the appsettings.json file. Refer to the following image.

Configure the client tenant id, and application id in the appsettings.json file

Register and log in to the application

Individual authentication

Step 1: To register the app, submit your email address and create a password. Then click Register.

Submit your email address, create a password and click on Register

Step 2: Confirm the registration by clicking Click here to confirm your account. Refer to the following image.

Confirm the registration by clicking Click here to confirm your account

Step 3: You can then submit your registered email address and password to log in to the app.

Microsoft identity platform authentication

Step 1: Log in to your app using your Microsoft account.

Step 2: Accept the permissions request for your app. Refer to the following image.

Accept the permission requests for the app

Windows authentication

Windows authentication automatically retrieves the username from the Windows machine. There is no registration and login process involved.


Thanks for reading! In this blog, we have learned how to create an ASP.NET Core app with the various authentications supported in the Syncfusion ASP.NET Core project template. This will help you create impressive, secure web apps in less time. Follow the steps provided in this blog and leave your feedback in the comments section below!

If you have any questions, you can also contact us through our support forumsupport portal, or feedback portal. We are always happy to assist you!

Related blogs


Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed