Skip to content

Empty X-Bunq-Client-Authentication headers result in HTTP 403 forbidden errors #36

Description

@holtkamp

Currently an 'empty' X-Bunq-Client-Authentication header is used in some initial request (like POST Installation), which results in a HTTP 403 forbidden error since 27-03-2018.

if (!isset($headers['X-Bunq-Client-Authentication'])) {
$headers['X-Bunq-Client-Authentication'] = $this->sessionToken;
}

It should only be set when required:

        if (\is_string($this->sessionToken) && $this->sessionToken !== '' && !isset($headers['X-Bunq-Client-Authentication'])) {
            $headers['X-Bunq-Client-Authentication'] = $this->sessionToken;
        }

Would a PR be accepted? Or is none of the maintainers monitoring this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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