Enabling Authentication
This lesson shows how to enable authentication for a LightSwitch application.
Enabling Authentication
Most business applications have security features to prevent unauthorized users from reading, manipulating, or deleting data. In LightSwitch, you can make your application more secure by implementing authentication, through which users must identify themselves in order to access the application. The first step in securing your application is to enable authentication.
To enable authentication
In Solution Explorer, double-click the Properties node.
In the Application Designer, click the Access Control tab.
In the Select the type of authentication to use: list, click Use Forms authentication.
The application will now require users to authenticate themselves in order to access the application.
Closer Look
This lesson showed how to enable Forms authentication for your application. Forms authentication is managed by the application itself. The application administrator maintains a list of authorized users and passwords, and a user must supply a username and a password to access the application. Forms authentication is a good choice when many users share one computer under one account
Note
While developing your application you will not be prompted for a username and password; you will automatically be logged on as a test user.
The other authentication option is Use Windows authentication. In this case, the credentials that are used to log on to the computer where the application is run are also used to authenticate the user. No additional username or password is required.
Next Steps
In the next lesson you will learn how to create permissions so that parts of the application can be restricted based on the permission levels of particular users.
Next lesson: Creating Permissions
See Also
Tasks
How to: Create a Role-based Application