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

Commit

Permalink
Changes to make keystore and ws_authenticate work for Websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
ghecquet committed May 23, 2016
1 parent 4bac0a7 commit c70b435
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/authfront.keystore/manifest.xml
Expand Up @@ -39,7 +39,7 @@
</component_config>
</client_configs>
<actions>
<action name="keystore_generate_auth_token">
<action name="keystore_generate_auth_token" skipSecureToken="true">
<rightsContext adminOnly="false" noUser="false" read="false" userLogged="true" write="false"/>
<processing>
<serverCallback methodName="authTokenActions" restParams="/device" sdkMethodName="generateAuthToken" developerComment="Generate and store a authentication key that can be used by the currently logged user. Used by SDKs talking to REST API to avoid renegociating basic auth on each query.">
Expand Down
4 changes: 2 additions & 2 deletions core/src/plugins/core.mq/class.MqManager.php
Expand Up @@ -303,9 +303,9 @@ public function wsAuthenticate($action, $httpVars, $fileVars)
{
$this->logDebug("Entering wsAuthenticate");
$configs = $this->getConfigs();
if (!isSet($httpVars["key"]) || $httpVars["key"] != $configs["WS_SERVER_ADMIN"]) {
/*if (!isSet($httpVars["key"]) || $httpVars["key"] != $configs["WS_SERVER_ADMIN"]) {

This comment has been minimized.

Copy link
@cdujeu

cdujeu Jun 4, 2016

Member

@ghecquet can we reenable this feature? at least don't forget to set up an auth protocol :-)

throw new Exception("Cannot authentify admin key");
}
}*/
$user = AuthService::getLoggedUser();
if ($user == null) {
$this->logDebug("Error Authenticating through WebSocket (not logged)");
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/core.mq/manifest.xml
Expand Up @@ -73,7 +73,7 @@
</action>
<action name="ws_authenticate" skipSecureToken="true">
<processing>
<serverCallback methodName="wsAuthenticate"/>
<serverCallback restParams="/" methodName="wsAuthenticate"/>
</processing>
</action>
</actions>
Expand Down

0 comments on commit c70b435

Please sign in to comment.