On this page · 11 sections
- What AWS shipped on 23 November
- How sign-in duration sits next to the limits you already have
- What the client actually holds during a 90-day session
- Is it really safer than access keys?
- How to set per-role and per-user limits
- The guardrails admins should put in first
- A tiering policy you can adopt
- Monitoring and revocation
- India-specific considerations
- How eCorpIT can help
- References
Summary. On 23 November 2026 AWS made sign-in duration configurable for IAM users and roles, so an OAuth sign-in session used by aws login, the AWS MCP Server and other OAuth applications can now stay alive for up to 90 days, in every commercial Region. The setting runs from 1 hour (3,600 seconds) to 90 days (7,776,000 seconds), it is separate from a role's MaxSessionDuration, and it does not touch AWS Management Console sessions. Nothing changes until an administrator sets a longer value. Clients still work with one-hour access tokens and single-use refresh tokens, so the long session swaps a long-lived access key for renewable short-lived credentials. The guardrails are new too. The Sign-In guide documents a numeric condition key, signin:MaxSigninSessionDuration, that lets an SCP cap every OAuth session in the organisation, and names an IAM key, iam:RequestSigninSessionDuration, to cap the value administrators can set, although the IAM reference pages do not list that second key yet. CloudTrail marks each token event with the configured duration in seconds. Our verdict: keep the default for most roles, extend only tagged developer and agent roles to 7 to 30 days, and cap everything else by SCP.
About this article. This is for cloud platform teams, security leads and engineering managers who run AWS accounts where developers use the AWS CLI and teams connect AI agents through the AWS MCP Server. On 27 November 2026 we checked every setting, range, API parameter, condition key and date against the AWS What's New post, the AWS Sign-In User Guide, the IAM User Guide and API reference, the AWS CLI documentation, the AWS MCP Server documentation and the Service Authorization Reference. This is technical guidance, not legal or compliance advice, and no vendor paid for inclusion. Researched with AI assistance and checked against the primary sources listed in the references.
What AWS shipped on 23 November
The What's New post went up on 23 November 2026 at 23:14 UTC. It lets administrators set how long an OAuth sign-in session stays active for an individual IAM user or role, up to 90 days, and presents that as a safer route than static access keys for long-running developer and agent work. It covers the AWS CLI through aws login, the AWS MCP Server and other OAuth-enabled applications, and it can be set in the IAM console, the AWS CLI or the IAM API.
Three things did not change. Console sessions keep their existing limits. Existing limits stay as they were unless someone configures a longer duration. And the role setting that caps individual AWS STS credentials, MaxSessionDuration, still governs how long each temporary credential set lives.
A sign-in session is the authenticated relationship between a principal and AWS Sign-In. It has an identifier, a creation time and an expiry, and while it is active the client renews short-lived access tokens with refresh tokens instead of sending the user back to the browser. The new setting decides when that relationship ends.
How sign-in duration sits next to the limits you already have
AWS now has several timers that people will confuse. The role ranges and defaults below come from the IAM role settings page and the UpdateRole reference, the user setting from the UpdateLoginProfile reference, and the console default from the same IAM page.
| Setting | Range | When unset | What it limits |
|---|---|---|---|
| Sign-in duration on a role (MaxSigninSessionDuration) | 1 hour to 90 days | Role's MaxSessionDuration applies | OAuth sign-in sessions for aws login, SDKs and MCP clients |
| Sign-in duration on an IAM user (login profile) | 1 hour to 90 days | Existing sign-in behaviour | OAuth sign-in sessions created with that user's console password |
| Role MaxSessionDuration | 1 hour to 12 hours | 1 hour | Each STS role session and its temporary credentials |
| Console sessions for IAM users | Not changed by this launch | 12 hours | AWS Management Console browser sessions |
For CLI and OAuth flows, the sign-in duration takes precedence over MaxSessionDuration as the length of the whole session, while MaxSessionDuration keeps capping each STS credential set inside it. So a developer role with a 30-day sign-in duration and a 1-hour MaxSessionDuration gets a 30-day session that hands out fresh 1-hour credentials.
The documentation does not agree on the default. The Sign-In User Guide says the default sign-in session is 12 hours. The IAM role page and the UpdateRole reference say that when the setting is unset, the role's MaxSessionDuration applies, and that defaults to 1 hour. The AWS CLI guide for aws login still says the session lasts up to the principal's session duration, with a maximum of 12 hours. Until AWS reconciles these pages, check a real session in CloudTrail rather than assuming either figure.
What the client actually holds during a 90-day session
The long session does not mean a 90-day credential. For the AWS MCP Server, access tokens last 1 hour and carry encrypted IAM credentials that the MCP client cannot read. Refresh tokens are single-use: each refresh returns a new access token and a new refresh token, and reusing an old refresh token invalidates every token for that session. That rotation makes a stolen refresh token noisy rather than silent. The MCP page still lists refresh tokens as valid for up to 12 hours, which matches the older default rather than an extended session.
AWS Sign-In also revokes refresh tokens on its own when an IAM policy attached to the principal changes, when an IAM user or root password changes, and when the session is explicitly revoked. A permissions change you make on Monday therefore forces a fresh sign-in, even inside a 90-day window.
The non-interactive path is different. Agents that already hold AWS credentials can use the OAuth client credentials grant through CreateOAuth2TokenWithIAM, and that flow issues only access tokens, never refresh tokens. Sign-in duration is about the interactive, browser-approved session.
For the CLI, AWS recommends the credential daemon with extended sessions. It keeps refresh tokens encrypted at rest and hands the CLI and SDKs only short-lived credentials, so the refresh token is not sitting where every process on the laptop can read it. By default aws login caches its credentials under the .aws/login/cache directory and refreshes them every 15 minutes as needed.
Is it really safer than access keys?
AWS's IAM guidance is to rely on temporary credentials where possible, keeping long-term access keys for cases such as workloads that cannot use roles and some third-party clients. The new setting removes one common excuse for keys: a developer or agent that did not want to re-authenticate twice a day. The comparison below draws on the AWS MCP Server OAuth page, the Sign-In session guide, the Sign-In condition keys reference and IAM's best practices page.
| Property | Static IAM access key | 90-day sign-in session |
|---|---|---|
| Credential on disk | Long-lived secret in plain configuration | Refresh token, encrypted at rest with the credential daemon |
| Lifetime of what an API call uses | Until someone rotates or deletes the key | 1-hour access tokens and STS credentials |
| Reuse after theft | Works quietly from anywhere | Refresh token reuse kills the whole session |
| Effect of a permissions change | None on the key itself | Refresh tokens revoked, user signs in again |
| Hard expiry | None by default | Session ends at the configured duration |
| Organisation-wide cap | Deny policies per principal | SCP on signin:MaxSigninSessionDuration |
| Audit marker | Access key ID in CloudTrail | SignInSessionExtended and SignInDuration on CreateOAuth2Token |
The honest caveat is that a 90-day session on a laptop is still 90 days of access if the laptop is compromised and the attacker uses the client in place. Rotation catches copied tokens, not a hijacked running client. That is why the duration should follow the role's blast radius, not developer convenience.
How to set per-role and per-user limits
Roles. In the IAM console open the role, choose Edit in the Summary section and pick a Sign-in duration value, which sits next to, and separate from, Maximum session duration. From the CLI or API, pass --max-signin-session-duration or MaxSigninSessionDuration to UpdateRole, in seconds. You cannot set it on a service-linked role.
# Give a developer role a 7-day sign-in session (7 x 86,400 = 604,800 seconds)
aws iam update-role --role-name DeveloperRole \
--max-signin-session-duration 604800
# Return the role to its unset state
aws iam update-role --role-name DeveloperRole \
--reset-max-signin-session-duration
# Check what is configured
aws iam get-role --role-name DeveloperRole
The reset is ResetMaxSigninSessionDuration, a Boolean you cannot combine with a new value in the same request. Changes apply to new sign-in sessions only; sessions already established keep their original expiry.
IAM users. The user setting lives on the login profile, the user's console password, through the MaxSigninSessionDuration parameter of UpdateLoginProfile, with the same 3,600 to 7,776,000 second range. Updating only the duration leaves the password untouched, and the setting is not supported for the root user. An IAM user without a console password has no login profile, so this route does not apply to it.
Permissions to sign in at all. Developers need the SignInLocalDevelopmentAccess managed policy, or an equivalent, to use aws login; it covers browser authorisation and token creation on the localhost and remote public-client resources. The AWS MCP Server equivalent is AWSMCPSignInOAuthAccessPolicy, which grants signin:AuthorizeOAuth2Access and signin:CreateOAuth2Token. aws login needs AWS CLI 2.32.0 or later.
The guardrails admins should put in first
Cap the session length across the organisation
The Sign-In condition keys reference now documents signin:MaxSigninSessionDuration, a numeric key evaluated on signin:CreateOAuth2Token whenever a token is issued or renewed. In an SCP it limits the effective session: if a role is configured for 7 days and the policy allows 5, the OAuth session ends at 5 days. Because aws:PrincipalArn is also available on CreateOAuth2Token, you can cap everyone except approved role patterns. The 2,592,000 seconds below is 30 x 86,400, our suggested ceiling for approved roles; everyone else stays at 43,200 seconds (12 x 3,600), the 12-hour default the Sign-In guide states, so standard sessions keep working.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "CapSignInExceptApprovedRoles",
"Effect": "Deny",
"Action": "signin:CreateOAuth2Token",
"Resource": "*",
"Condition": {
"NumericGreaterThan": { "signin:MaxSigninSessionDuration": "43200" },
"ArnNotLike": {
"aws:PrincipalArn": [
"arn:aws:iam::*:role/dev-extended-*",
"arn:aws:iam::*:role/agent-mcp-*"
]
}
}
},
{
"Sid": "HardCeilingThirtyDays",
"Effect": "Deny",
"Action": "signin:CreateOAuth2Token",
"Resource": "*",
"Condition": {
"NumericGreaterThan": { "signin:MaxSigninSessionDuration": "2592000" }
}
}
]
}
AWS's own example uses the same NumericGreaterThan pattern with 432,000 seconds (5 x 86,400) for a 5-day cap. Test the exact behaviour in a sandbox organisational unit before attaching it to production. When the key blocks a renewal, credentials already issued stay valid for a short tail: up to 15 minutes for aws login and up to 1 hour for OAuth access tokens.
The Service Authorization Reference describes a different key for the same action, signin:PutSignInDurationBlock, a Boolean that filters on whether the token request uses an extended sign-in session. The Sign-In User Guide no longer documents it, so we would not build policy on it until AWS aligns the two references.
Decide who can change the number
The Sign-In session guide names iam:RequestSigninSessionDuration as the key that limits the duration administrators can specify when creating or updating roles and login profiles, with an SCP denying values above 5 days as its example. On 27 November 2026, though, the Service Authorization Reference still lists only resource tag and permissions boundary keys on iam:UpdateRole, and only resource tag keys on iam:UpdateLoginProfile. Until that listing catches up, treat the IAM key as documented but untested and rely on the Sign-In key above for enforcement.
Either way, review who holds iam:UpdateRole and iam:UpdateLoginProfile. A principal allowed to call UpdateRole on a role can raise its sign-in duration, and a helpdesk role that resets IAM user passwords through UpdateLoginProfile can also extend that user's sign-in sessions. A practical pattern is to scope delegated role administration by tag, so platform engineers can only edit roles approved for extended sessions:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EditOnlyApprovedRoles",
"Effect": "Allow",
"Action": "iam:UpdateRole",
"Resource": "arn:aws:iam::111122223333:role/*",
"Condition": {
"StringEquals": { "iam:ResourceTag/signin-tier": "extended" }
}
}
]
}
This narrows who can change which role, not the value they choose, and the tag key is our own convention. Pair it with a periodic GetRole sweep that flags any role whose sign-in duration is above your agreed ceiling.
Narrow which clients and flows can use the session
The OAuth condition keys let you restrict which registered client can obtain tokens, which redirect URIs are trusted and which grant types are allowed. AWS's MCP example limits authorisation to localhost redirect URIs, and the grant type key can separately keep the client credentials flow away from a resource that should only take browser-approved sessions. For aws login, the localhost and remote public-client resource ARNs let you allow same-device sign-in and refuse the cross-device --remote flow, or the other way round.
A tiering policy you can adopt
These durations are our recommendation, not AWS guidance. They assume the credential daemon is in use and MFA is enforced at sign-in.
| Principal type | Suggested sign-in duration | Why |
|---|---|---|
| Production admin and break-glass roles | Unset, plus SCP cap | Short sessions keep a stolen laptop from holding admin access |
| Read-only and audit roles | Up to 7 days | Low blast radius, frequent CLI use |
| Developer roles in sandbox and dev accounts | 7 to 30 days | Removes the twice-daily re-login that pushes people to keys |
| MCP agent roles with scoped permissions | 7 to 14 days | Long-running agent work, but reviewed weekly |
| Contractor and vendor roles | Unset or 1 day | Match the session to the contract and offboarding speed |
| IAM users with console passwords | Unset | Move them to roles or IAM Identity Center first |
The 90-day maximum is best kept for isolated sandbox accounts with no production data. A session started on 23 November runs to 21 February 2027, past most quarterly access reviews.
If your developers sign in through IAM Identity Center, aws login is not their route; the AWS CLI guide sends Identity Center users to the separate SSO configuration instead. For agents that should not hold a user's session at all, our explainer on AWS STS GetScopedCredentials for AI agents covers the narrower credential path AWS added the same month.
Monitoring and revocation
AWS Sign-In writes OAuth activity to CloudTrail. Each CreateOAuth2Token event carries the signInSessionArn, a SignInSessionExtended flag that shows whether an explicit duration is configured, and SignInDuration in seconds. Query for SignInSessionExtended equal to true and group by principal ARN to see who is actually using long sessions, then compare SignInDuration with your tier table.
Sessions can be listed per principal, inspected one by one and revoked in batches with the Sign-In ListSessions, GetSession and BatchRevokeSessions actions.
aws signin list-sessions \
--principal-arn arn:aws:iam::111122223333:role/DeveloperRole
aws signin batch-revoke-sessions \
--session-arns arn:aws:signin:us-east-1:111122223333:session/EXAMPLE-ID
Know the limits of revocation before you need it. Revocation can take up to an hour, it touches only the sessions you name, and access tokens already issued stay valid until they expire. Administrators can manage sessions across the account, while individual users can manage only their own. Add batch revocation to the offboarding runbook next to access key deletion, and in an incident also change a policy on the principal, since that revokes its refresh tokens.
Two adjacent pieces help with the agent side. Our analysis of the AWS MCP Server OAuth cross-account gap explains why OAuth still cannot switch profiles across accounts, which the new duration does not fix. And our guide to AI agent identity governance covers inventorying non-human identities before you extend their sessions.
India-specific considerations
Many Indian engineering teams still hand out IAM user access keys to contractors and offshore vendors because roles felt harder to set up. A role with a 7-day sign-in duration, a vendor tag and the SCP cap above gives those teams a workable middle path, and batch revocation gives a clean offboarding step. Where AWS accounts hold personal data, keep CloudTrail records of session creation and revocation so you can show who had access and when if an incident has to be assessed under India's DPDP Act.
How eCorpIT can help
eCorpIT is a Gurugram-based technology organisation, founded in 2021, assessed at CMMI Level 5 and MSME certified, with senior-led engineering teams working across AWS, Microsoft and Google platforms. Our cloud computing services team can audit your IAM roles and access keys, set sign-in duration tiers with tag-scoped admin rights, and roll out the SCP cap and the CloudTrail queries that show who uses extended sessions. Talk to us at /contact-us/.
Last updated: 27 November 2026.