• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.

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