Idira Identity: AWS Console SAML Session Lifetime Token
95
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:06 PM
Objective
Problem: The default AWS CLI session time for an IAM role is 1 hour. This may log the user out of their AWS CLI session too early.
Environment
20.7 Identity App Access Service
Procedure
Solution:
1. Log into the AWS Console and edit the AWS Role(s) used by the Identity SAML logins.
a. Edit the “Maximum CLI/API session duration” settings to the desired duration.
2. Log into the Idaptive Admin Portal and edit the AWS SAML app configurations.
a. Go to the SAML Response section.
b. Add the following lines into the Custom Logic section > SAML Script Editor:
=======
Modify the numbers at the end, in seconds to match the time configured in the AWS Console for “Maximum CLI/API session duration”
Reference to explain the requirements: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_assertions.html
The Second piece is the assertion lifetime which is used to changed NotOnOrAfter condition.
=======
setAssertionLifetime('360');
=======
Note: The value is set in minutes. The above example is set for 6 hours, please adjust the time to fit your use case.
Please log a case via our portal at https://community.cyberark.com/s/ or call our support line at 408-495-8118 or +44 (0) 330-808-9480 if you have any questions or concerns.