Skip to content

Commit

Permalink
Merge pull request #3 from youmad/master
Browse files Browse the repository at this point in the history
Rename authid and authrole fields of publisher in Event details
  • Loading branch information
davidwdan authored Jan 11, 2019
2 parents a4f7963 + 8fe3929 commit ddf0ecc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Message/EventMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,20 @@ public function getSubscriptionId()
*/
public function disclosePublisher(Session $session)
{

$details = $this->getDetails();
$details->publisher = $session->getSessionId();
$details->topic = $this->topic;
$authenticationDetails = $session->getAuthenticationDetails();
$details->authid = $authenticationDetails->getAuthId();
$details->authrole = $authenticationDetails->getAuthRole();
$details->authroles = $authenticationDetails->getAuthRoles();
$details->authmethod = $authenticationDetails->getAuthMethod();
$details->authid = $authenticationDetails->getAuthId();
$details->authrole = $authenticationDetails->getAuthRole();
$details->publisher_authid = $details->authid;
$details->publisher_authrole = $details->authrole;
$details->authroles = $authenticationDetails->getAuthRoles();
$details->authmethod = $authenticationDetails->getAuthMethod();

if ($authenticationDetails->getAuthExtra() !== null) {
$details->_thruway_authextra = $authenticationDetails->getAuthExtra();
}

}

/**
Expand Down

0 comments on commit ddf0ecc

Please sign in to comment.