CLOUD CONCEPT

Authentication

Authentication is the process of verifying the claimed identity of a person, application, or device before treating it as that identity.

Cloud Concepts Hub →

What is Authentication

Cloud systems use authentication to establish which identity is making a request by validating credentials or other evidence. It is distinct from authorization, which determines what that identity may do, and is essential for protecting administrative access, application data, and service-to-service communication.

Authentication answers the question, “Who is making this request?” A person, application, or device claims an identity and presents evidence that a trusted system validates. That evidence might be a password, a cryptographic signature, a security key, or a token issued by a trusted identity provider. Authentication establishes confidence in an identity; it does not automatically establish that a request is permitted.

Authentication and authorization are separate decisions. An engineer might successfully sign in to a cloud console but receive an access-denied response when attempting to delete a database. The sign-in established the engineer’s identity, while authorization policies rejected the requested action. For exam questions, credentials and identity verification generally indicate authentication, while permissions, policies, and allowed actions indicate authorization.

Cloud platforms authenticate both human users and workloads. People commonly use an interactive sign-in process with multifactor authentication, or MFA. Applications typically use temporary credentials, signed requests, certificates, or tokens rather than interactive passwords. For example, an application running on a virtual machine can obtain temporary credentials through an attached workload role instead of storing a permanent secret in its source code.

In AWS, IAM users can have passwords for console access and access keys for programmatic access. These are different credentials: a console password is not used to sign AWS CLI requests. AWS API requests commonly use Signature Version 4, which proves possession of the secret access key without transmitting that secret in the request. Temporary AWS credentials also include a session token and expire after a defined period.

Roles provide assumable identities with permissions and are commonly used with temporary credentials. An IAM group is different: it organizes IAM users for permission management and cannot sign in or authenticate independently. The AWS account root user is also distinct from an IAM user. Protect root access with MFA, avoid using it for routine work, and avoid creating root access keys.

MFA requires evidence from different factor categories, such as something a user knows and something the user possesses. Two passwords do not constitute two factors. Phishing-resistant methods, such as appropriately implemented FIDO security keys or passkeys, provide stronger protection against credential phishing than passwords combined with manually entered one-time codes. MFA does not grant permissions or make an already issued session immune to theft.

Federation lets a cloud platform trust authentication performed by an external identity provider. An employee can sign in through a corporate identity system and obtain a cloud session without maintaining a separate long-lived cloud password. Single sign-on improves usability and centralizes identity administration, but the identity provider becomes a critical dependency that requires strong security and recovery procedures.

Authentication design balances security, usability, and operational complexity. Short-lived credentials reduce the useful lifetime of stolen credentials but require reliable renewal. Long-lived secrets require secure storage, rotation, and revocation. Engineers should avoid shared identities, prevent credentials and tokens from entering logs or repositories, and monitor sign-in and API activity. Disabling an account or changing a password does not necessarily invalidate every existing session immediately; session expiration and revocation behavior must be understood separately.

Key aspects of Authentication

Effective authentication combines trustworthy identity evidence, appropriate factors, secure credential handling, and controlled sessions while keeping permission decisions separate.

Verification of a claimed identity

Authentication validates evidence associated with a person, workload, or device. Prefer individually attributable identities over shared credentials so activity can be investigated and access can be removed precisely.

Separation from authorization

Successful authentication does not guarantee access to a resource. Investigate credential failures separately from policy-based denials, because they require different fixes.

Multifactor protection

MFA combines different factor categories to reduce dependence on a single credential. Use phishing-resistant methods where supported, especially for privileged and root access.

Human and workload credentials

People typically use interactive sign-in, while workloads use mechanisms such as temporary credentials, certificates, and signed requests. Avoid embedding a human user's credentials in application code.

Federation and trusted identity providers

Federation allows a system to accept identity assertions or tokens from a trusted provider. Validate the issuer, intended audience, signature, and expiration as required by the protocol rather than merely checking that a token exists.

Credential and session lifecycle

Credentials and sessions need controlled issuance, expiration, renewal, and revocation. Prefer temporary credentials where practical, and account for the fact that password changes may not terminate existing sessions.

Cloud services for Authentication

For workforce access, IAM Identity Center connects users to AWS accounts through centralized sign-in and optional external identity providers. IAM defines roles and permissions, while AWS STS supplies temporary credentials used for authenticated API requests. For customer-facing applications, Amazon Cognito user pools handle user authentication, and identity pools can obtain temporary AWS credentials when needed. These services address different identity populations and stages of access: verifying identity, establishing a session, and applying permissions remain distinct responsibilities even when the user experiences a single sign-in flow.

Amazon Cognito image Amazon Cognito

Amazon Cognito user pools provide authentication for application users, including sign-in and federation with supported identity providers. Cognito identity pools can exchange supported identity evidence for temporary AWS credentials, separating application user authentication from access to AWS resources.

Open Amazon Cognito →