API session login returns 400 bad request for expired / disabled user

mbodea2007a year ago

Hello,
the API session login returns 400 bad request for expired / disabled user...
Thx

Anton Tananaeva year ago
  1. Why is that an issue?
  2. What's the payload?
mbodea2007a year ago

Hi,
It should return "Account has expired - SecurityException"
as in Disableable.java (last line):

throw new SecurityException(getClass().getSimpleName() + " has expired");

but it is returning
response status code: 400, "Bad request"
...
M

Anton Tananaeva year ago

What about the second question?

mbodea2007a year ago

my bad: response is:
response: User is disabled - SecurityException (Disableable:36 < LoginService:99 < *:80 < SessionResource:137 < ...)
response.statusCode: 400

so it is OK. (it is changed from previous version I think - this is why I thought it's an error)
Sorry