AuthenticationException provides an object to pass to a error callback function when an authentication exception occurs. The AuthenticationException object contains references to the URL, the UserId, and the request options used in the authentication attempt.
Constructor
The AuthenticationException object is constructed when actuate.Authenticate( ) fails.
Returns an instance of the RequestOptions that modified the URL that caused the exception, if applicable.
Returns
actuate.RequestOptions object. A RequestOptions object defines URL parameters sent in the authentication request, such as the iHub URL, volume, or repository type. The RequestOptions object can also add custom parameters to the URL.
Example
The following sample code retrieves the RequestOptions object that caused the exception:
var exceptReqOpts = AuthenticationException.getRequestOptions( );
getUserId
Syntax
string AuthenticationException.getUserId( )
Returns the UserId used in the failed authentication attempt.
Returns
String.
Example
The following sample code retrieves the UserId from an exception: