Concept and mechanism
Authentication demonstrates control of authenticators; authorization determines what the identity may do. Two knowledge elements, such as password and secret question, do not create independent factor categories. MFA also does not automatically imply phishing resistance: a manually entered OTP can be relayed.
Choose mechanisms meeting the required property and handle account recovery and authenticator enrollment with equal care. In federation, validate issuer, signature, validity, and audience. An authentic assertion intended for another application should not be accepted merely because email matches. Trust must match the defined recipient and context.
Guided application
Review the full access lifecycle. Disabling an IdP account may not end local sessions or issued automation tokens. When an employee leaves, identify remaining paths, revoke personal access, and move needed automation to an owned service identity.
Do not presume abuse without evidence, but confirm revocation works. Apply separation of duties when policy requires independent approval; two accounts controlled by one person do not create that independence. AI agents are also nonhuman identities: limit accessible tools and data rather than inheriting all operator privileges.
For temporary support, grant resource- and time-scoped privilege with approval and records. An unowned account needs investigation and controlled treatment to reduce risk without interrupting unknown dependencies.
Trust starts before the first login
A strong credential is useful only when an authorized process binds it to the correct account. If someone recovers an account through a weak channel and can immediately add a new administrator key, that key’s strength does not resolve uncertainty about who authorized enrollment. Separate three moments: establishing identity or control of the required authenticators, binding the new credential, and subsequently using it. Each produces different evidence. A later signature establishes use of the corresponding key; it does not reconstruct the legitimacy of initial binding.
For a fictional operations portal, document who may initiate enrollment, which session or additional proof is required, and how the account owner is informed. A later notification helps detect unexpected changes but does not replace the earlier control. Prepare recovery and credential removal without losing account traceability. During acceptance, use separate synthetic accounts: Bruno’s enrolled key must not authenticate Ana even when both belong to the same team. That relationship must exist in a service-controlled record, not merely in a client-submitted attribute.
Presence is not user verification
User presence and user verification answer different questions. An interaction can establish consent or presence at an authenticator without meeting the verification required by the operation. In WebAuthn, the application must interpret UP and UV alongside the userVerification policy it actually applies. When policy requires verification, a valid signature with UP set and UV absent is insufficient. Nor should UV be turned into a universal biometric requirement: other acceptable verification mechanisms can exist.
Consider confirmation of a sensitive change in a production portal. The team supplies a request capture showing userVerification=required. That capture establishes intent, but acceptance must examine the response and service behavior. Prepare a legitimate case and another with only the relevant condition absent. Record both the expected result and the observed reason, distinguishing policy rejection from a generic parsing error. If older clients do not support the requirement, handle compatibility and exceptions as explicit decisions. Do not declare compliance merely because the login screen completed, or because a configured option looked correct before the response was processed.
Origin and RP ID are complementary checks
An organization can use funds.test as its RP ID while allowing only https://portal.funds.test as an application origin. Being beneath the same domain does not automatically make preview.funds.test an authorized origin. RP ID participates in credential scope; origin identifies the client context initiating the ceremony. Service verification compares received values against expectations established through configuration and policy. It should not construct its expectation by copying the value supplied by the response itself.
During migration, the infrastructure team may confirm DNS and TLS certificates while the application team maintains a different origin list. Connectivity passes, yet authentication should reject the new context until the change has been appropriately assessed. Work with an origin, RP ID, environment and client-version matrix. Include a correctly signed example whose origin is not authorized. Its signature should remain valid: rejection can then demonstrate the contextual comparison being assessed. Frames and related origins introduce their own conditions; this course’s laboratory does not implement those scenarios or demonstrate their compatibility.
Bind the challenge to the pending operation
An unpredictable challenge helps associate a response with an operation initiated by the service. To use that property, the application must retain the association: expected account or context, operation, deadline and consumption state. A global list of recent challenges is not automatically equivalent to that binding. With two open windows, a valid response to challenge A must not satisfy the operation awaiting B merely because the person and key are the same. Matching is an acceptance condition alongside the other controls.
Prepare the test with two independent transactions and distinct values. First deliver a legitimate response to its own transaction and observe acceptance; then try reusing it and swapping it between transactions. Local policy should define handling of expired or unsuccessful operations. In the laboratory, the deadline is exclusive and only acceptance records successful consumption; those are explicit exercise choices. A dictionary in one process demonstrates logic for those cases but does not guarantee atomic consumption under concurrent requests, survival across restarts, or distributed replay protection in a deployed authentication service.
Interpret counters without inventing a cause
The signature counter can provide an additional risk signal, but it is not an infallible copy detector. Some authenticators do not implement this counter and leave it at zero. Where nonzero values exist, a response that fails to advance beyond the stored value can indicate cloning, malfunction, or operations arriving in a different order from generation. That observation does not automatically identify the original device or establish which cause occurred. The application needs a response consistent with its policy and operational context.
For a service with simultaneous requests, retain enough evidence to distinguish a reordering hypothesis from an ongoing pattern of mismatches. Do not discard the signal merely because the signature passes, or announce a confirmed intrusion solely from the counter. Pausing a sensitive operation for additional review may be appropriate while keeping the conclusion bounded. The laboratory returns counter-review for nonzero regression and accepts zero when the prior state is also zero. This illustrates separation of cryptographic validity and risk decisions; it is not a universal blocking rule imposed on every WebAuthn implementation.
Authentication freshness in federation
A newly issued token does not prove that the user has just authenticated. In OpenID Connect, iat describes issuance while auth_time describes the authentication event. An SSO session started in the morning may yield an ID Token late in the afternoon without a new interaction. If an operation requires authentication within five minutes, the team should request appropriate behavior and validate the returned evidence. Requesting max_age does not remove the need to check the required auth_time response claim and the token’s other acceptance conditions.
During a fictional reconciliation closing, do not handle unavailable reauthentication by extending exp or changing only the local session’s start time. Neither makes earlier authentication more recent. Define in advance who may authorize an exception, which operation remains suspended, and how the unmet condition is communicated. An authenticated identity also does not by itself determine business authorization. Preserve distinctions between RP session start, token issuance, IdP authentication and authorization of the action. This chronology makes diagnosis, testing and the acceptance report more precise and easier to review. The acr class adds another condition when specified in the agreement: recent auth_time does not establish the required class. acr_values is a voluntary request; compare returned acr with operation policy instead of treating the request as proof.
The offboarding ticket is closed but a personal token still deploys: the criterion is effective revocation, not only central-account disablement.
Common pitfalls
Two screens treated as two factors; OTP treated as universal resistance; signature without audience; disabled account treated as termination of every session.
Related topics: Assessment, testing, and evidence limits · Operations, incidents, and recovery
Controlled access requires appropriate identity, proportionate scope, and demonstrable revocation.
References
- Authentication and Authenticator Management · SP800-63B-4, July 2025
- Web Authentication Level 3 · Recommendation 2026-08-25; sections 6.1.1, 7.2 and 13.4.9
- Federation and Assertions · SP 800-63C-4, July 2025; federation identifiers and RP sessions
- OpenID Connect Core 1.0 incorporating errata set 2 · Final Core 1.0 with errata set 2; ID Token and authentication request claims