Rewritted authentication