SSO (シングル サインオン) を実現するための最善の方法は、すべてのユーザーを Magento に移行することです。
Magento ファイルは、外部 Web サイトからもアクセスできる必要があります (同じサーバー上にある場合、またはマウントを介している場合)。その後、以下のコードのようなものを使用できます。
<?php
require_once '/path/to/magento/root/app/Mage.php';
umask(0);
Mage::app();
$session = Mage::getSingleton('customer/session');
// Login
try {
    $session->login($email, $password);
    $session->setCustomerAsLoggedIn($session->getCustomer());
    //Load the customer modules
    $customer = Mage::getModel('customer/customer')->setWebsiteId(Mage::app()->getStore()->getWebsiteId());
    //Get customer attribbutes
    $customer->loadByEmail($email);
} catch (Exception $e) {
    Mage::log($e->getMessage());
}
$email と $password には、フォームから送信される値が含まれます。