Provides the client proxy class for the authentication service. 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. 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.
Initializes a new instance of the Sys.Services.AuthenticationService class.
Specifies the path of the default authentication service.
Gets or sets the default succeeded callback function for the service.
Function
A reference to the succeeded callback function for the service.
Gets or sets the default succeeded callback function for the service.
A reference to the succeeded callback function for the service.
Gets or sets the default user context for the service.
Object
A reference to the user context for the service.
Gets or sets the default user context for the service.
A reference to the user context for the service.
Gets or sets the name of the default failure callback function.
Function
Gets the authentication state of the current user. The value of this property is set by the ScriptManager object during a page request.
boolean
true if the current user is logged in; otherwise, false.
Gets or sets the authentication service path. By default, the path property is set to an empty string. If you do not set the path property, the internal default path is used, which points to the built-in authentication service.
string
Gets or sets the authentication service time-out value. The timeout property represents the time in milliseconds that the current instance of the Sys.Net.WebRequestExecutor class should wait before timing out the request. The timeout in milliseconds
number
The timeout
Authenticates the user's credentials.
(required) The user name to authenticate.
The user's password. The default is null.
true if the issued authentication ticket should be persistent across browser sessions; otherwise, false. The default is false.
The function to call when the login has finished successfully. The default is null.
The function to call if the login fails. The default is null.
User context information that you are passing to the callback functions.
Logs out the currently authenticated user.
If redirectUrl is null or is an empty string, the page is redirected to itself after the call to the authentication Web service finishes and the completed callback function is called. This makes sure that any user-related data is cleared from the page. If redirectUrl is not null or is a non-empty string, the page is redirected to the specified URL after a successful call to the Web service. This URL can be an absolute virtual path, a relative virtual path, or a fully qualified domain name and a path. If the call to the Web service fails, the page is not redirected or refreshed. Instead, the failed callback function is called.
The URL to redirect the browser to on successful logout. The default is null.
The function that is called when the logout has finished. The default is null.
The function that is called if the logout has failed. The default is null.
User context information that you are passing to the callback functions.
Gets or sets the name of the default failure callback function.
A string that contains the name of the default failure callback function.
Gets or sets the authentication service path. You usually set the path property in declarative markup. This value can be an absolute virtual path, a relative virtual path, or a fully qualified domain name and a path. By default, the path property is set to an empty string. If you do not set the path property, the internal default path is used, which points to the built-in authentication service.
The authentication service path.
Gets or sets the authentication service time-out value. The timeout property represents the time in milliseconds that the current instance of the Sys.Net.WebRequestExecutor class should wait before timing out the request. By setting a time-out interval, you can make sure that a pending request returns based on a time interval that you specify, instead of waiting for the asynchronous communication layer to time out.
The time-out value in milliseconds.