Enable Authentication For Securing LightSwitch Application in Visual Studio 2012

Introduction

In this article I describe how to enable authentication using LightSwitch in Visual Studio 2012.

In LightSwitch the Authentication feature is used to control access to screens and data. It shows us how to authenticate a user.

We can develop our application more securely by applying authentication, by which users must identify themselves in order to access the application in LightSwitch Visual Studio 2012.

Note: In Windows Authentication there is no additional username or word require

Enable Authentication

Step 1

Open the Solution Explorer in Light Switch Visual Studio 2012.

Image 1

sol1.jpg

Step 2

In Solution Explorer, right-click or double-click on "Properties" to open the "Application Designer".

Image 2

property.jpg

Step 3

The Application Designer appears.

Image 3

designer.jpg

Step 4

In the Application Designer, click the "Access Control" node.

Image 4

access1ctrl.jpg

Step 5

Inside the Access Control Node go to the "Select the type of authentication to use" list, click on "Use Windows authentication".

Image 5

winauthen.jpg

Step 6

As we run the application we will get the table.

Image 6

Clipboard03.jpg

Step 7

Now we insert the value and click on the save button; we then have:

Image 7

output.jpg


Similar Articles