authenticationModel property (JSDOSession class)
- Last Updated: January 17, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
Returns a
string constant that was passed as an option to the object's class
constructor, and specifies the authentication model that the current JSDOSession object requires to start a JSDO login session in
the web application for which the JSDOSession object was
also created.
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 web application supports Anonymous access. No authentication is required. This is the default value if none is passed to theJSDOSessionconstructor. -
progress.data.Session.AUTH_TYPE_BASIC— The web application supports HTTP Basic authentication and requires a valid username and password. To have theJSDOSessionobject manage access to the web application's resources for you, you need to pass these credentials in a call to theJSDOSessionobject'slogin( )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. -
progress.data.Session.AUTH_TYPE_FORM— The web application uses HTTP 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 theJSDOSessionobject 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 thelogin( )method. TheJSDOSessionintercepts the form sent by the web application and handles the authentication without that form being displayed.
If the 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