System.Web.ClientServices.Providers Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains client service providers and other classes that support access in Windows-based applications to the Microsoft Ajax authentication, roles, and profile services.
Classes
ClientFormsAuthenticationCredentials |
Represents user login information for forms authentication by using client application services. |
ClientFormsAuthenticationMembershipProvider |
Enables forms authentication with client application services. |
ClientRoleProvider |
Gets role information for Windows-based applications from an Microsoft Ajax roles service. |
ClientSettingsProvider |
Enables Windows-based applications to retrieve user settings from a Web settings service. |
ClientWindowsAuthenticationMembershipProvider |
Enables Windows authentication with client application services. |
SettingsSavedEventArgs |
Provides data for the SettingsSaved event. |
UserValidatedEventArgs |
Provides data for the UserValidated event. |
Interfaces
IClientFormsAuthenticationCredentialsProvider |
Defines a method that the ClientFormsAuthenticationMembershipProvider class calls to retrieve user credentials. |
Remarks
The classes in the System.Web.ClientServices.Providers namespace include client application service providers that enable Windows-based applications to use the Microsoft Ajax authentication, roles, and profile services. You can enable these services and specify client service providers in your application configuration file, and then access the services through existing .NET Framework 2.0 membership, identity, and application settings infrastructures. The client service providers also support occasional connectivity by storing and retrieving user information in a local data cache when the application is offline. For more information, see Client Application Services.
To access the login service, you can use either Windows or Forms authentication by specifying the ClientWindowsAuthenticationMembershipProvider or ClientFormsAuthenticationMembershipProvider in your application configuration. Windows authentication uses the identity supplied when a user logs in to the operating system. Forms authentication requires that you to retrieve login information from the user and pass it to the service. You can do this by specifying an IClientFormsAuthenticationCredentialsProvider implementation with your ClientFormsAuthenticationMembershipProvider configuration. The IClientFormsAuthenticationCredentialsProvider.GetCredentials method returns a ClientFormsAuthenticationCredentials object that contains user login information. You can populate this object, for example, by displaying a login dialog box in the GetCredentials method.
To access the roles and profile services, specify the ClientRoleProvider and ClientSettingsProvider in your application configuration.