• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Extension Development

Paul Ellison

Basic Pleskian
I am looking to develop my own Plesk extension to implement Two Factor Authentication though a third party provider called Duo Security.

Having read a fair amount of documentation I have only found information about replacing/complementing the existing Username/Password login. Code from Google Authenticator and Clef extensions appears to be heavily obfuscated.

The Duo Security process I am trying to implement submits the username used in primary authentication and then offers the user with additional content loaded through an iFrame which is used to interact with the second factor. More details about the DuoWeb process is available here: https://duo.com/docs/duoweb

Is this the best place to get advice regarding this, or is there a specific Extension developer community?

Thanks
Paul
 
Update:

I have now created an extension framework, put together the settings page, and have values saving.
I have created a test hook (Auth.php) with the following to see if I can inhibit login. No luck so far.
Code:
class Modules_LdapAuth_Auth extends pm_Hook_Auth {

    public function auth($login, $password) {
        return false;
    }

    public function isEnabled() {
        return (bool)pm_Settings::get('enable');
    }

    public function breakChainOnFailure() {
        return true;
    }

}
 

Attachments

  • Screen Shot 2016-02-25 at 19.35.36.png
    Screen Shot 2016-02-25 at 19.35.36.png
    39.6 KB · Views: 7
Back
Top