Skip to content

HTTP protocol auth failed #140

Closed
Closed
@wenerme

Description

@wenerme

Driver use basic auth , but server need jwt, always return 401

00:59:39.922 [main] DEBUG org.apache.http.headers - http-outgoing-0 << HTTP/1.1 401 Unauthorized
00:59:39.922 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Server: nginx
00:59:39.922 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Date: Fri, 04 Aug 2017 16:59:41 GMT
00:59:39.922 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Type: text/plain; charset=utf-8
00:59:39.922 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Length: 0
00:59:39.922 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Connection: keep-alive
00:59:39.922 [main] DEBUG org.apache.http.headers - http-outgoing-0 << X-Content-Type-Options: nosniff
00:59:39.922 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Www-Authenticate: Bearer token_type="JWT", realm="ArangoDB"
        ArangoDB db = new Builder()
            .useSsl(true)
            .useProtocol(Protocol.HTTP_JSON)
            .host("HOST", 443)
            .user("USER")
            .password("PASS")
            .build();
        System.out.println(db.getAccessibleDatabases());

The server use nginx as reverse proxy

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions