Unifying Access: AWS SSO Federation with Okta

As businesses increasingly adopt cloud services, the need for efficient and secure identity and access management becomes paramount. Amazon Web Services (AWS) offers a robust solution in the form of AWS IAM Identity Center formerly known as AWS Single Sign-On (SSO), simplifying access across multiple AWS accounts in AWS Organization and applications. Integrating AWS SSO with Okta, a leading identity management platform, can further enhance user experience and security. In this blog, I’ll talk about concept of AWS SSO Federation with Okta and delve into the architecture that drives this seamless identity management.

The Power of AWS SSO Federation

AWS SSO is designed to streamline access management for multiple AWS accounts and applications. It enables users to sign in once using their existing corporate enterprise credentials and access all their assigned AWS accounts and applications without the need for multiple logins. This not only simplifies the user experience but also reduces administrative overhead and enhances security by enforcing multi-factor authentication (MFA) policies.

AWS IAM Identity Center allows you to

Choose your preferred identity source (Okta One ID) for use across AWS Organization.

In the below diagram, we can have multiple identity source options. In this blog, we will talk about OKTA.

AWS IAM

Figure 1.Multiple Identity Providers with AWS IAM Identity Center

Introducing Okta as an Identity Provider

Okta is a modern identity management platform that offers Single Sign-On (SSO), Multi-Factor Authentication (MFA), and centralized user management capabilities. By integrating Okta with AWS SSO, organizations can leverage their existing user identities to seamlessly access AWS resources.

user function

Figure 2. Multi-account integration representation with Okta

AWS IAM Identity Center with Okta -Workflow

SAML Federation Architecture

The architecture diagram illustrates the AWS SSO Federation with any Identity provider( here it is Okta) flow.

identoty

Figure 3

SAML federation workflow with AWS SSO

  1. User Access Request: The user browses to your organization’s portal and selects the option to go to the AWS Management Console. In your organization, the portal is typically a function of your IdP that handles the exchange of trust between your organization and AWS.
  2. Okta Authentication: The portal verifies the user’s identity in your organization.
  3. SAML Assertion Generation: The portal generates a SAML authentication response that includes assertions that identify the user and include attributes about the user. We can also configure your IdP to include a SAML assertion attribute called Session Duration that specifies how long the console session is valid. We can also configure the IdP to pass attributes as session tags. The portal sends this response to the client's browser.
  4. SAML Assertion Exchange: The client browser is redirected to the AWS single sign-on endpoint and posts the SAML assertion.
  5. AWS SSO Authentication: The endpoint requests temporary security credentials on behalf of the user and creates a console sign-in URL that uses those credentials.
  6. Access AWS Resources: The client browser is redirected to the AWS Management Console. If the SAML authentication response includes attributes that map to multiple IAM roles, the user is first prompted to select the role for accessing the console.

Key Advantages of AWS SSO Federation with Okta

Implementation Steps

  1. Set Up Okta: Configure Okta as an identity provider and define the required applications.
  2. Configure AWS SSO (Service Provider): Set up the AWS SSO instance and define applications and user attributes.

1. Okta to AWS SSO Integration

Create a SAML app in Okta and configure the AWS SSO metadata.

On the Okta console, choose Back to Applications or choose Applications on the toolbar.

2. Exchange the Metadata between SP and IDP

First, Upload the AWS SSO metadata to the OKTA Application.

okta

3. Edit button to exchange Sign on Metadata

meta

AWS SSO Window to upload IDP Okta Metadata

SCIM Provisioning Enablement

To enable automatic provisioning in the IAM Identity Center

auto

Enablement of Automated SCIM Provisioning

Configure provisioning in Okta.

provisioning

Integration edit button for SCIM provisioning in OKTA

Conclusion

The integration of AWS SSO Federation with Okta represents a leap forward in modern identity and access management. By leveraging the power of single sign-on and centralizing user identities, organizations can significantly improve both security and user experience. The architecture’s simplicity and effectiveness make it an ideal solution for managing access to AWS resources across diverse applications and accounts. With the right implementation, AWS SSO Federation with Okta paves the way for streamlined access management in today’s dynamic cloud ecosystem.

If you have any questions or need a hand, please don’t hesitate to contact me on. Read, Comment and follow.