Fixing the authorisation setup.
Finish 0.2.6