Export (0) Print
Expand All

Sys.Services.AuthenticationService Class

Provides the client proxy class for the authentication service.

Namespace: Sys.Services

Inherits: None

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.

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.

NoteNote:

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.

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.

Community Additions

ADD
Show:
© 2014 Microsoft