Hi, I have a project regarding authentication using an OTP such as YubiKey. For this project I will use Yubikey, Moodle and an external database. What I would like to do is as soon as students/teacher insert the Yubikey in the USB port, an authentication page loads, username and OTP are inserted and as the user presses login on the auth. page, a request is sent to the external db, checks if the user exists in the db, if it exists, the user is redierected to index page in Moodle as a logged in user. The log in page is done in PHP
Till now I managed to make a login page which accesses the db and rediercts me to moodle index page but does not log the user in in Moodle. Also, Moodle is able to refer to external db as using Moodle authentication page, with an existing user stored in external db, Moodle accepts that user and logs in.
What I need is 1) Can anyone help me in devising an application which accepts an OTP such as Yubikey
2) The application checks with external db if user exists, logs in user to Moodle.
Any help will be appreciated. I am new to Moodle and the use of such technologies as OTP.