In computing, I'm used to talk about "authenticating against a server". However, it came to my attention that many people use "with" instead of "against" in that sentence, and the Google test seems to prove them right.
Are both valid expressions? Do they mean exactly the same? Do you know any dictionary or style guide out there that states either that one of them is the only valid expression or that one of them is better than the other one?
Best Answer
Generally, a user authenticates to something with something. A user is proving he or she is entitled to access something based on something he or she has. For example,
In more complicated scenarios 'against' might be useful. For example,
The definition of against as "compared or contrasted with" is being used rather than "in opposition to".
In a way, 'against' is thinking from the server's point of view. A user provides credentials and the server compares them to its user table.
I use Microsoft Manual of Style and couldn't find a recommended style. I use 'to' and 'with' when I'm writing for end-users and I use 'against' when writing for administrators.