AuthenticationException is thrown when
- a user was not authorized (due to invalid or no API access key used when the server requires authorization)
- OR the user was recognized, but the user permissions do not allow the operation
(e.g. trying to create an issue in a project, which the user has no access to).