Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Pydio Booster device : ignore session_set_credentials setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 3, 2016
1 parent 317ccb6 commit 7d0a0bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/core/src/pydio/Core/Utils/Http/UserAgent.php
Expand Up @@ -189,7 +189,8 @@ public static function osFromUserAgent($useragent = null)
'PydioPro iOS Native Application' => 'Pydio-Native-iOS',
'Pydio Android Native Application' => 'Apache-HttpClient',
'PydioPro Android Native Application' => 'Pydio-Native-Android',
'Pydio Sync Client' => 'python-requests'
'Pydio Sync Client' => 'python-requests',
'Pydio Booster' => "Go-http-client"
);

if ($useragent == null) {
Expand Down
3 changes: 2 additions & 1 deletion core/src/plugins/authfront.keystore/KeystoreAuthFrontend.php
Expand Up @@ -30,6 +30,7 @@
use Pydio\Auth\Frontend\Core\AbstractAuthFrontend;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Utils\Http\UserAgent;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Controller\HTMLWriter;
use Zend\Diactoros\Response\JsonResponse;
Expand Down Expand Up @@ -141,7 +142,7 @@ function authTokenActions(ServerRequestInterface $requestInterface, ResponseInte

case "keystore_generate_auth_token":

if (ConfService::getContextConf($ctx, "SESSION_SET_CREDENTIALS", "auth")) {
if (ConfService::getContextConf($ctx, "SESSION_SET_CREDENTIALS", "auth") && UserAgent::osFromUserAgent($requestInterface->getServerParams()['HTTP_USER_AGENT']) !== 'Pydio Booster') {
$this->logDebug("Keystore Generate Tokens", "Session Credentials set: returning empty tokens to force basic authentication");
HTMLWriter::charsetHeader("text/plain");
echo "";
Expand Down

0 comments on commit 7d0a0bf

Please sign in to comment.