How to Disable Authentication Using LightSwitch in Visual Studio 2012

Introduction

Since I described in my previous article "Enable Authentication For Securing LightSwitch Application in Visual Studio 2012" how to enable authentication, this article describes how to disable authentication using LightSwitch in Visual Studio 2012.

Using LightSwitch, we can make our application more secure by preventing unauthorized access to the users from reading, changing, or deleting data. If we apply authentication and authorization, then users must prove their identities before accessing the application. So in this way we can make our application more secure.

Authentication

To enable authentication we can use:

  • Form Authentication
    In form authentication a user must supply a username and a word to access the application and forms authentication is managed by the application itself.
  • Windows Authentication
    In this no additional username and word is required.

Now I will describe how to disable authentication.

Step 1

Open the Solution Explorer in LightSwitch Visual Studio 2012.

Image 1

solexp.jpg

Step 2

In the Solution Explorer double-click or right-click and select "Properties", as in the following:

Image 2

propopen.jpg

Step 3

The "Application Designer" will appear.

Image 3

appdesign.jpg

Step 4

Choose the "Access control" option in the Application Designer.

Image 4

donotauth.jpg

Step 5

Select the type of authentication to use and in this choose the "Do not enable authentication" option to disable the authentication.

Image 5

donotauth.jpg

Step 6

When we run the application we get the following table:

Image 6  

tabblle.jpg

Step 7

And after inserting the value the users do not need to provide credential information in order to access the application, and any user can access any part of the application.

Image 7

ouutpuut.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all