Methods, credentials, and factors
Every sign-in asks for some kind of evidence that the person at the keyboard controls an account. Naming the pieces of a sign-in precisely makes it possible to say what a service actually checked, and what it still doesn't know.
The sign-in experience
Sign-in pages look different from one service to the next. One asks for a password. Another emails a code. A third sends a notification to your phone and waits for you to approve it, and your laptop may offer to sign you in with a fingerprint. Behind each of these screens, the service is collecting a different kind of evidence that you control the account you're asking for.
Cora Diaz keeps her albums at the photo service. When she returns, she types her email address and her password. The address tells the service which account she wants. Anyone who knows the address could type it, so on its own it shows nothing about who is at the keyboard.
In Proving control of an account, authenticationChecking evidence that someone, or some application, controls an account, such as a password or a passkey. It establishes which account is being used, not what that account may do. was the check of that evidence: control of an authenticator associated with the account. These lessons look closely at the different kinds of evidence a service can ask for, how each one is checked, and where each one fails. Throughout them, one question helps: what evidence did the service actually verify?
Naming the pieces
A few words come up in every sign-in, and they are easy to blur together. Cora's sign-in has all of them. Her email address is the identifier: it finds her account among everyone else's. Her password is a credential: the evidence registered to her account that only she should be able to present. The password lives in her memory, so her memory is also the authenticator, the thing she controls that produces the evidence. For an authenticator app or a security keyA small physical device, plugged in or held near a phone or computer, that holds credentials and uses them to prove you have it. It is an authenticator that resists phishing., the authenticator is a separate device.
The method is the procedure the service uses to collect and check the evidence, such as comparing a typed password with the value it stored, or checking a signatureA value made with a private key that lets anyone holding the matching public key check that a message came from the key's holder and has not been changed. It proves origin and integrity; it does not hide the message. over a fresh challenge. The factor is the kind of evidence involved. A password is knowledge of a secret.
| Term | Meaning in these lessons | In Cora's sign-in |
|---|---|---|
| Identifier | A value used to find or distinguish an account. | Her email address, or the account ID the service uses internally. |
| Credential | Evidence registered to one account that only its holder should be able to present. | Her password. |
| Authenticator | Something the person controls and uses to produce the evidence. | Her memory of the password. An app or security key, if she adds one. |
| Method | The procedure used to collect and check the evidence. | Comparing the typed password with the stored value. |
| Factor | The kind of evidence involved. | Knowledge of a secret. |
Products and standards don't always use these words the same way. Some call the record that ties an authenticator to an account the credential; some say "factor" when they mean a method. When a page or a policy uses one of these words, look at the role the piece plays rather than the label.
The service that checks the evidence is the verifier. When that service signs people in for other applications, as the photo service does for the printer in the OAuthA framework that lets a person give an application limited access to their resources at another service, using tokens instead of sharing their password. OAuth is about access; OpenID Connect adds sign-in. lessons, it is called an identity provider. The sign-in page Cora sees belongs to the identity provider, and the applications she uses afterwards rely on its result. Authentication policy and SSO returns to that arrangement.
Three kinds of evidence
Authentication factors fall into three kinds, and each has its own way of being checked and its own way of failing.
Something you know is a secret, such as a password, or a PIN that unlocks an authenticator. It only counts while it stays secret. Cora's email address, her birthday or her favorite photo album are things she knows too, but other people can find them, so they are not useful evidence.
Something you have is possession and control of an authenticator, such as a phone running an authenticator app or a security key. The service doesn't take Cora's word that she owns a phone. It checks evidence that only the registered device could produce, such as a code computed from a secret the app holds, or a signature from a key that never leaves the device.
Something you are is a biometric characteristic, such as a fingerprint or a face. In most sign-ins today, the comparison happens on Cora's own device: the fingerprint reader checks her finger and then lets the device use a key it holds. The photo service checks the key's signature. It never receives the fingerprint, which is why a biometric usually works as a way to unlock an authenticator, not as evidence sent to the service.
The factor describes the evidence, not the screen it was collected on. One screen can check two factors, as a fingerprint-unlocked passkeyA credential that your phone, computer or password manager creates for one website and keeps for you, unlocked with a fingerprint, face or PIN. Nothing you could type is sent, and it works only for the site it was made for, which helps it resist phishing. does, and two screens can check the same factor twice, as a password followed by a security question does. Later lessons in this group follow each method in turn and then count factors properly.
Following the evidence
Follow Cora's sign-in from start to finish. She types her address, and the photo service finds her account. She types her password, and the service repeats the computation it ran when she chose the password and compares the result with the value it stored. The values match, so the service has evidence that the person at the keyboard knows the secret registered to Cora's account. It creates a sessionThe ongoing connection between later requests and an earlier sign-in, so you are not asked for your password on every click. It is often tracked with a cookie holding an unpredictable session identifier., so she can move from album to album without typing the password on every page.
Now suppose someone types Cora's address with the wrong password. The identifier still finds her account, but the evidence doesn't match, and authentication fails. The service should say only that the email address or password is incorrect. If it said "wrong password" here and "no such account" for an address it doesn't know, anyone could use the sign-in page to test which addresses have accounts, a check called account enumeration. One message for both cases keeps that from leaking.
Her address, her password
- Account found
- Cora
- Password check
- Matches
- Page says
- Her albums
- Recorded against
- Cora
- Session
- Created
Signed in
Her address, a guess
- Account found
- Cora
- Password check
- Does not match
- Page says
- Email or password is incorrect
- Recorded against
- Cora
- Session
- None
Refused
No such account
- Account found
- None
- Password check
- Not reached
- Page says
- Email or password is incorrect
- Recorded against
- No account
- Session
- None
Refused
Authentication answered a different question: control of the account, not who Cora is or what she may do.
A failed attempt is still worth recording. The service knows which account the wrong password was tried against, so it can record the attempt with Cora's account as its subject, even though no one was authenticated. A typed address is a claim, not an authenticated person, so the record names no actor. Repeated failures against one account can then be noticed and slowed down.
Successful authentication has limits too. It shows that someone controlled the evidence registered to Cora's account. Someone who has stolen her password passes the same check. It doesn't establish her legal name, which is the job of identity proofingA process for establishing confidence that someone is the real person they claim to be, for example by checking identity documents and confirming that the evidence belongs to the person presenting it., and it doesn't decide what she may do. If Cora asks to manage other people's accounts, authorizationDeciding whether a requested action is permitted, such as whether a signed-in account may delete a particular photo. Authentication says which account is asking; authorization decides what it can do. refuses her, because authentication answered a different question.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Follow the evidence in a real sign-inSign Cora in with an identifier and a password, then trace what the tenant verified, what it recorded, and what the sign-in did not establish.