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

  1. In Solution Explorer, double-click the Properties node.

  2. In the Application Designer, click the Access Control tab.

  3. In the Select the type of authentication to use: list, click Use Windows authentication.

    The application will now require users to authenticate themselves in order to access the application.

Closer Look

This lesson showed how to enable Windows authentication for your application. With Windows authentication, the credentials are used to log on to the computer where the application is run and the credentials that are used to authenticate the user are the same. No additional username or password is required.

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 Forms authentication, which the application itself manages. 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.

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

LightSwitch Authentication and Authorization

Other Resources

Enabling Authorization and Creating Permissions

Managing Settings in LightSwitch