AREAVerifyLoginCallback
Synopsis
int AREAVerifyLoginCallback(
void *object,
ARAccessNameType user,
ARPasswordType password,
ARAccessNameType networkAddr,
ARAuthType authString,
AREAResponseStruct **response)
Input arguments
object
Pointer to the plug-in instance that the call to ARPluginCreateInstance returned.
user
User name.
password
User password.
If the password is a NULL pointer, as opposed to an empty string, the AR System sends a notification to the user in order to determine the user's notification mechanism and email address. When the password is NULL, the AR System is not requesting authentication of the user's identity. The plug-in implementation should return notification mechanism and email address information for the user and return a successful login attempt.
networkAddr
IP address of theAR System client.
The AR System server determines the client's IP address and passes the address, user name, and password to the plug-in.
For connections using AR System External Authentication (AREA), you can use the IP address of the client machine as authentication, even when using a firewall or a load balancer. However, you cannot use the IP address as authentication when making Mid Tier connections. In this case, the IP address passed is for the machine where Mid Tier is installed, not for the client machine.
authString
String that the AR System API client user enters into the login screen. This string has no format restrictions. The AREA plug-in uses this string for authentication purposes.
Return values
response
Pointer to a response structure containing user information returned from the plug-in. The structure should be freed using AREAFreeCallback when it is no longer needed.