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

Commit

Permalink
Merge a0febed into 9279478
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Mar 25, 2016
2 parents 9279478 + a0febed commit e41bc77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Context/OroContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ private function generateWsseAuthHeader(
$nonce = uniqid();
}

$created = date('c');
$digest = base64_encode(sha1(base64_decode($nonce) . $created . $userPassword, true));
$created = date('c');
$digest = base64_encode(sha1(base64_decode($nonce).$created.$userPassword, true));
$wsseHeader = [
'CONTENT_TYPE' => 'application/json',
'HTTP_Authorization' => 'WSSE profile="UsernameToken"',
Expand All @@ -108,7 +108,7 @@ private function generateWsseAuthHeader(
$digest,
$nonce,
$created
)
),
];

return $wsseHeader;
Expand Down

0 comments on commit e41bc77

Please sign in to comment.