Skip to content

[Feature] LoginAPI support token_expire field #2752

@Thespica

Description

@Thespica

Feature Description (功能描述)

Client's login test was blocked by this problem, showing errer:

java.lang.AssertionError: 
Expected: a string containing "Incorrect username or password"
     but: was "Unrecognized field "token_expire" (class org.apache.hugegraph.api.auth.LoginAPI$JsonLogin), not marked as ignorable (2 known properties: "user_name", "user_password"])
 at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 70] (through reference chain: org.apache.hugegraph.api.auth.LoginAPI$JsonLogin["token_expire"])"

CURRENT implementation(not only this method):
https://github.com/apache/incubator-hugegraph/blob/42f9a7638ba0d3d75744c69690938c4ca1074e56/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/auth/LoginAPI.java#L61-L79

NEW implementation for refer(not only this method):
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiChanges of APIfeatureNew feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions