Source of file SalesforceAuthenticator.php
Size: 0,562 Bytes - Last Modified: 2021-12-23T10:49:10+00:00
/var/www/docs.ssmods.com/process/src/src/SalesforceAuthenticator.php
12345678910111213141516171819202122 | <?php /** * A member authenticator which uses the Salesforce OAuth and identity service. */ class SalesforceAuthenticator extends Authenticator { public static function get_name() { return _t('SalesforceAuth.SALESFORCE', 'Salesforce'); } public static function authenticate($data, Form $form = null) { return Injector::inst()->get('SalesforceAuth')->authenticate( $data['BackURL'], !empty($data['Remember']) ); } public static function get_login_form(Controller $controller) { return new SalesForceLoginForm($controller, 'LoginForm'); } } |