Skip to content

WSSE Authentication #144

Description

@template-provider

PHP version: 7.2

Description
Cannot authenticate with WSSE Plugin

How to reproduce
Use WSSE REST Api like emarsys rest api

Possible Solution
Change line in Wsse.php

$digest = base64_encode(hash($this->hashAlgorithm, $nonce.$created.$this->password, false));

Additional context
I am trying to auth against a wsse api from emarsys. But the auth does not work correctly with the current implementation.
Current:

$digest = base64_encode(hash($this->hashAlgorithm, base64_decode($nonce).$created.$this->password, true));

The base64_decode is not needed because the nonce creation is using a md5.
The parameter binary should be false instead of true, than the auth works.
Can anybody reproduce this? Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions