Skip to content

JWT Token does not begin with Bearer String #4

@nejatian

Description

@nejatian

hi
I can successfully authenticate my user but when I call another API I got this error:
JWT Token does not begin with Bearer String
and my postman shows this error:

{
    "timestamp": "2020-04-13T19:06:35.593+0000",
    "status": 404,
    "error": "Not Found",
    "message": "No message available",
    "path": "/api/v1/acl/role"
}

I have checked my code in debugger and I saw header that is understood by code
but this section of code doesn't work:

try {
                username = jwtTokenUtil.getUsernameFromToken(jwtToken);
            }

can you give me a help please?

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