Authentication is the process of checking that a person, or a program, really is who it claims to be before letting it into an account or a system. It is what happens every time you type your username and password, use your fingerprint to unlock your phone or show your ID card at an office. The word comes from the Greek authentikos, which means genuine or original.
Authentication is the doorman who asks for your ID. Before letting you in, he checks that you are who you say you are.
What is authentication?
Authentication is not a computing invention, because in everyday life we authenticate ourselves all the time. When a friend calls you, you recognise their voice. When the cash machine asks for your PIN, you prove that you know something only you know. When a guard looks at the photo on your ID, he checks that your face matches. The digital world uses the same principles, only with different tools and without anyone seeing your face.
Why the login is the main target for attackers
The problem with digital authentication is that attackers do not need to be physically present. They can try millions of passwords from anywhere in the world, or trick a person into handing theirs over. That is why authentication is the main point of attack in almost any system. A weak doorman lets anyone in, and everything behind the door is left at their mercy.
The security of authentication depends on the quality of the proof that is requested. A short, common password is very weak proof. A long, unique password combined with a physical key is very strong proof. Standards bodies, such as NIST in the United States, publish detailed guidelines on which methods to use in each situation, depending on the risk to be covered.
The difference between authentication and authorisation
Authentication and authorisation sound alike and often get mixed up, but they answer different questions. Authentication answers who you are and checks it with a password, a code or a key. Authorisation answers what you can do once you have been identified. Authentication always comes first, and only afterwards is it decided which doors open. A hotel offers a useful comparison. Showing your ID at reception is authentication. Receiving a key card that opens only your room and the gym is authorisation. A failure in the first step lets an impostor in, and a failure in the second lets a legitimate person reach places they should not.
How an identity verification process works
Every authentication process starts with a set of credentials. The person types their username and password, approves a prompt on their phone or taps a physical key. The system does not compare the password as it is, but calculates its fingerprint and checks it against the one stored when the account was created, so it never needs to know the real password.
If the proof matches, the system opens a session and gives the browser or the app a temporary identifier, usually a cookie or a token, so that the password is not requested on every click. The session inherits the trust of the authentication, which is why stealing that identifier is the same as stealing the access. Sensitive operations, such as changing the password or making a payment, usually ask for some proof again.
Every attempt, successful or failed, should be logged. Authentication logs make it possible to detect brute force attacks, logins from unusual places and compromised accounts.
Types of authentication
The types of authentication differ in the number of proofs they ask for, in the nature of those proofs and in when they are requested, and each one offers a different level of protection.
Single factor, the password
Single-factor authentication asks for one proof, almost always a password. It is convenient and universal, but weak, because the password can be guessed, stolen through deception or reused after a leak from another service.
Two-factor and multi-factor authentication
Two-factor authentication adds a second proof from a different category, such as a code on the phone or a physical key, and multi-factor authentication can add more. Second factors differ enormously from one another. Text messages are the weakest, because they can be intercepted or redirected with a duplicate SIM card, code generator apps improve protection and physical keys offer the highest level. Choosing the right method matters as much as switching it on.

Passwordless access and passkeys
Passwordless authentication removes the memorised secret from the process altogether. Passkeys, based on the FIDO2 standard, create a pair of cryptographic keys for each site, keep the private key on the device and unlock it with a fingerprint or the face. Because each key only works with the legitimate domain, they resist phishing better than any other method.
Adaptive or risk-based authentication
Adaptive authentication decides on every login how many proofs to ask for, based on the device, the location, the time or the behaviour. A routine login from the usual laptop gets through without friction, while one from another country at three in the morning requires an extra factor or is blocked.
Certificate-based and mutual authentication
Certificate-based authentication uses a digital certificate installed on the computer or on a smart card, such as an electronic national ID card, instead of a password. In mutual authentication, common between servers and in banking APIs, both sides present a certificate and identify each other at the same time, so that neither can be impersonated.
Authentication factors, knowing, having and being
Something you know
It is the most common factor, and the weakest when used on its own. It includes passwords, PINs and answers to security questions. Its great advantage is that it requires nothing but memory. Its great problem is that it can be guessed, stolen, leaked or handed over through deception. On top of that, people tend to choose predictable passwords and repeat them on many sites.

Current recommendations have changed compared with a few years ago. It is no longer advised to invent strange passwords full of symbols and change them every month. Passwords should be long, ideally phrases of several words, unique for every service and stored in a password manager. Changing them only when there is a reason, such as a leak, stops people from ending up with predictable variations.
Something you have
These are objects that only the person possesses, such as the phone that receives a code, an app that generates temporary numbers or a physical security key. Adding one of them to the password gives you two-step verification. An attacker who steals the password will also need the object, and that stops them in the vast majority of cases. The limitation is convenience and loss. If the phone breaks or gets lost, there has to be a way to recover access without opening a door for attackers. Serious services provide recovery codes for those situations, which should be kept somewhere safe. Good design balances ease of use with protection, because a system that is too inconvenient ends up being bypassed.
Something you are
Fingerprints, the face, the iris or the voice can be used to identify a person. Modern phones use them to unlock, and many apps use them as a convenience.
Their advantage is that you always carry them with you and never forget them. Their drawback is that they cannot be changed. If a fingerprint leaks, it cannot be replaced like a password.
That is why they are usually used locally, inside the device, to unlock a key that never leaves it. That is exactly what passkeys do, a recent technology that replaces passwords. The fingerprint or the face only confirms that you are the one using the phone. The service never receives that data, which reduces the privacy risks.
Location and behaviour as additional signals
Some systems add signals that nobody explicitly asks for. The approximate location, the network the person connects from, the usual device or even the way they type and move the mouse. These signals are rarely enough on their own, but they feed adaptive authentication and help detect that someone is using stolen credentials.
Single sign-on and identity protocols
With dozens of applications in a company, authenticating in each one would be both a nuisance and a risk. Single sign-on, or SSO, lets a person identify themselves once with an identity provider while the rest of the services trust that check. It is the same idea behind the buttons that let you sign in with a Google or Microsoft account.

SAML
SAML is an XML-based authentication protocol in which the identity provider gives each application a signed assertion stating who the user is and which attributes they have. It is the most widespread standard in companies for logging into applications such as corporate email, the HR system or cloud tools with a single account.
OpenID Connect and OAuth 2.0
OpenID Connect is an authentication layer built on top of OAuth 2.0, the authorisation protocol of the web. It gives the application a signed token with the user’s identity and is the usual standard behind the buttons for signing in with another account and behind mobile apps.
Kerberos
Kerberos is the classic authentication protocol of Windows networks and many Unix systems. The user authenticates once with a central server and receives encrypted tickets that give access to each service on the network without sending the password again.
Centralising authentication also concentrates the risk, which is why the identity provider account must be the best protected of all, with physical keys and alerts for any unusual login.
Secure access for websites and online shops
Any website with a login area, whether it is a CMS such as WordPress or Joomla, a shop on PrestaShop, Magento or Shopify or a custom application, relies on authentication as its first line of defence. Bots try millions of username and password combinations against login pages all over the world, continuously and automatically. A weak password on an administrator account is the shortest route to a compromised website. It is the cause of a huge share of incidents.
The most useful authentication measures for a website are simple. Long and unique passwords, a second factor on accounts with high privileges, limits on failed attempts and alerts when someone logs in from an unusual place. Almost every platform includes them or offers them through extensions. It is also advisable to avoid obvious usernames, such as admin, which make life easier for anyone trying combinations.
For visitors or customers, offering sign-in with an account from a major service can reduce risk, because it avoids storing passwords of your own. But it is also worth offering a second factor. In online shops, stolen accounts lead to fraudulent orders and chargebacks. A well-designed login system protects customers and cuts the shop’s own costs from fraud that could have been avoided. If your website runs on WordPress, a WordPress security specialist knows how to put this protection into practice.
Application authentication and account reviews
Non-human identities, keys and tokens
Programs also need to authenticate with each other to exchange data. They do it with access keys and with tokens that represent a temporary permission. Unlike a person, a program cannot answer a security question, so protection depends on storing those keys properly and limiting what they allow.
Application authentication is a frequent weak spot in organisations. Keys get published by mistake in repositories, are left in accessible configuration files or are shared across many services. They should be treated like passwords, rotated regularly, given only the permissions each service needs and revoked when they are no longer used.
Checking how solid the access to your accounts is
To review the authentication of your accounts, ask yourself what would happen if someone stole the password of the most important one. If the answer is that they would simply walk in, the protection is not enough. If a second factor would stop them, you are in a better position. Go through the exercise with your email, your web hosting, your domain and your website dashboard. Those are the accounts that, if they fall, drag all the others down with them.
It is also worth reviewing habits, such as repeating the same password on several sites, sharing it in messages or writing it down in unsafe places. A password manager solves most of these problems, generates unique passwords and fills them in for you. There are free and paid options, and small teams can share access in a controlled way without sending passwords by email.
Finally, check whether your details have appeared in known leaks. There are free services that let you look up whether an email address appears in public data breaches. If it does, change the affected passwords immediately, along with those of any other service where you reused them. It is a review of a few minutes that cuts off many login attempts with credentials that are already exposed.
A reused password that exposed millions of accounts
In 2012, the storage service Dropbox suffered a security incident. At the time, the company reported that attackers had accessed some accounts using passwords stolen from other sites, and that a stolen password had been used to get into an employee’s account, which contained a document with users’ email addresses. It acknowledged the problem and forced password changes.
The real scope came to light four years later. In August 2016, data from around 68 million accounts surfaced online, with email addresses and passwords protected by cryptographic fingerprints. Dropbox confirmed that the data came from the 2012 incident and forced a password reset for every account created before the middle of that year that had not changed its password. According to press reports, the intrusion was achieved with a reused employee password.
The password fingerprints were protected with two different methods. Some with a modern, slow method that makes guessing very hard, and others with an older, faster method that offers less resistance. That difference showed that the quality of protection matters, and that an outdated method can leave millions of users more exposed than necessary if the data leaks.
The case of that reused password sums up two lessons. The first is that reusing passwords turns someone else’s failure into your own problem, and that the weakest link can be a single person inside a company. The second is that services must protect passwords with modern methods and offer a second factor. Since then, Dropbox and most major services recommend turning it on for every account.