Fixing the authorisation setup.