Skip to content

Getting "Invalid authorization token supplied" (Neo.ClientError.Security.AuthorizationFailed) error #165

@AlexanderMatveev

Description

@AlexanderMatveev

I'm using Getting started code: https://github.com/jadell/neo4jphp/wiki/Getting-started
Server has dbms.security.authorization_enabled=true, 7473 is http port.

I'm using neo4jphp:

use Everyman\Neo4j\Client, Everyman\Neo4j\Cypher\Query;
$neo4j = new Everyman\Neo4j\Client('localhost', 7473);
$neo4j->getTransport()->setAuth('...', '...');
This works fine.

But this line:

var_dump($neo4j->getServerInfo());

..returns error:

[message] => Invalid authorization token supplied.
[code] => Neo.ClientError.Security.AuthorizationFailed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions