Fix for desktop client login: read ticket from header instead request params.