skip to main content
OpenEdge Mobile 11.5.1 Updates : Session management updates : JSDOSession properties : authenticationModel property (JSDOSession class)
 
authenticationModel property (JSDOSession class)
Returns a string constant that specifies the authentication model that the current JSDOSession object is using and was passed as an option to the object's class constructor.
Data type: String
Access: Read-only
Applies to: progress.data.JSDOSession class
Values that can be returned include:
*progress.data.Session.AUTH_TYPE_ANON — The Mobile Web application supports Anonymous access. No authentication is required. This is the default value if none is passed to the JSDOSession constructor.
*progress.data.Session.AUTH_TYPE_BASIC — The Mobile Web application supports HTTP Basic authentication and requires a valid username and password. To have the JSDOSession object manage access to the Web application's resources for you, you need to pass these credentials in a call to the JSDOSession object's login( ) method. Typically, you would require the user to enter their credentials into a login dialog provided by your Mobile App, either using a form of your own design or using a template provided by Progress Software Corp.
*progress.data.Session.AUTH_TYPE_FORM — The Mobile Web application uses Form-based authentication. Like HTTP Basic, Form-based authentication requires user credentials for access to protected resources; the difference is that the Web application itself sends a form to the client to get the credentials. However, when you have the JSDOSession object manage access to the Web application's resources, you handle Form-based authentication the same way that you handle Basic—get the user's credentials yourself and pass them to the login( ) method. The JSDOSession intercepts the form sent by the Web application and handles the authentication without that form being displayed.
If the Mobile Web application requires authentication, you must set this value correctly in the JSDOSession constructor to ensure that users can log in.

See also:

The constructor description for the progress.data.JSDOSession class, login( ) method (JSDOSession class)