Use nonce generation middleware first
Use nonce generation middleware first

If auth failed, the nonce was not being attached to the request object and resulting in a KeyError when the response is finally being prepared.
igboyes/virtool,virtool/virtool,igboyes/virtool,virtool/virtool