Sys.Services.AuthenticationService Class

Provides the client proxy class for the authentication service.

Namespace: Sys.Services

Inherits: None

Members

Name

Description

Sys.Services.AuthenticationService Constructor

Initializes a new instance of the Sys.Services.AuthenticationService class.

Sys.Services.AuthenticationService.DefaultWebServicePath Field

Specifies the path of the default authentication service.

Sys.Services AuthenticationService login Method

Authenticates the user's credentials.

Sys.Services AuthenticationService logout Method

Logs out the currently authenticated user.

Sys.Services AuthenticationService defaultFailedCallback Property

Gets or sets the name of the default failed callback function.

Sys.Services AuthenticationService defaultLoginCompletedCallback Property

Gets or sets the name of the default login-completed callback function.

Sys.Services AuthenticationService defaultLogoutCompletedCallback Property

Gets or sets the name of the default logout-completed callback function.

Sys.Services AuthenticationService defaultSucceededCallback Property

Gets or sets the default succeeded callback function for the service.

Sys.Services AuthenticationService defaultUserContext Property

Gets or sets the default user context for the service.

Sys.Services AuthenticationService isLoggedIn Property

Gets the authentication state of the current user.

Sys.Services AuthenticationService path Property

Gets or sets the authentication service path.

Sys.Services AuthenticationService timeout Property

Gets or sets the authentication service time-out.

Remarks

The AuthenticationService class provides script access to user authentication. It calls methods of the authentication service through the same infrastructure used to call any other Web service method.

Note

The built-in authentication service is located on the server in a predefined location.

The AuthenticationService class is a singleton; it has only one instance with a global point of access. It is always available to your application and you do not have to instantiate it.

Example

Description

The following example shows how to use the AuthenticationService class to check whether a user is authenticated. For more information, see Using Forms Authentication with ASP.NET AJAX.

See Also

Concepts

Sys.Services.ProfileService Class

Sys.Net.WebServiceProxy Class

Using Forms Authentication with ASP.NET AJAX