fix_auth_machanism