Refactor the authentication request specs.