What is SimpleDBAuthentication1?
SimpleDBAuthentication1 is an object implementing the Aspire Authentication protocol.
Specifying the authentication plugin
request.aspire.authentication.authenticationObject.className=\
com.ai.aspire.authentication.SimpleDBAuthentication1
Specifying the authentication request
request.aspire.authentication.authenticateUser.className=com.ai.db.DBRequestExecutor2
request.aspire.authentication.authenticateUser.filterName=filters.SingleRowHashtableFilter
request.aspire.authentication.authenticateUser.db=ptrDB
request.aspire.authentication.authenticateUser.stmt= \
select 'true' as result \
from users \
where user_id = '{userid}' \
and password = '{password}'
This is an example select statement. In your case you can use your own database and your own select statemetn. Ultimately this class/statement is responsible for returning a row with a column name as "result" and its value "true" or "false". Not returning a row is interpreted as "false". The input values are "userid" and "password".
Related classes
- SimpleDBAuthentication1
- PublicAccessAuthentication
- TrivialAuthentication
- IAuthentication*