SugarCRM Mobile. How can I prevent our users to access using Sugar version

Hello!

We are developing a customized version of SugarCRM mobile and we would like to be able to force users to use this app, not the one Sugar provides us.

Is this possible?

thanks!!

Parents Reply
  • I created /custom/include/SugarOAuth2/SugarOAuth2StorageMobile.php in my instance:

    class sugarOAuth2StorageMobile extends SugarOAuth2StorageBase
    {
    public $numSessions = 2;

    public function checkUserCredentials(IOAuth2GrantUser $storage, $client_id, $username, $password)
    {

      if ($client_id === 'sugar') {
        throw new SugarApiExceptionNeedLogin('Please access through our custom app');
      }

      return parent::checkUserCredentials($storage, $client_id, $username, $password);
    }

    }

    Worked like a charm.

    Thanks!

Children
No Data