Skip to content

Changing error message when JWT expires #36

Description

@alessandroderoma

I tried the GET example on a secured resource:

@GET
@Produces(MediaType.APPLICATION_JSON)
public DefaultJwtCookiePrincipal getPrincipal(@Auth DefaultJwtCookiePrincipal principal) {
	return principal;
}

When the current JWT is valid I get a correct JSON, when it's expired I get Credentials are required to access this resource., and the response gets transferred as text, making the httpclient (which expects a JSON output from the service) to fail.

How can I solve this?

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