Skip to main content
Cloud basicsLesson 6 of 17

Single Sign-On for People (SSO and Federation)

An engineer needs the cloud console, a Kubernetes cluster and a few internal apps. Follow how one identity provider (IdP) becomes the only place their account lives, and how every other system trusts it instead of keeping its own users. How a single OIDC login works is in How Logging In Works (Sessions, JWT, OIDC); how a cloud API checks a request is in Permission Checks on One API Request (IAM).

IdentityOne per system
CredentialPasswords, keys
Expires—
Access—
Cloud accountsEngineerdana@example.comIdentity providerEntra ID · OktaIAM Identity CenterPermission setsAccount roleTemporary credentialsKubernetes APIOIDC · RBACInternal appOIDC loginIAM userLong-lived keyPassword + key
RequestResponse / reportWatchAppears in a later step

What you will learn

  • One identity provider as the only source of users
  • SAML and OIDC, and where each is used
  • Permission sets that turn a login into temporary role credentials
  • SCIM provisioning and what offboarding really ends
  • The same IdP for kubectl and apps

SAML or OIDC​

SAML 2.0OpenID Connect
Built onXML, signed assertionsOAuth 2.0, signed JWT (ID token)
How it travelsBrowser posts the assertion to the serviceRedirect with a code, tokens fetched by the client
Typical usersCloud consoles, enterprise SaaSWeb and mobile apps, CLIs, kubectl
Works without a browserHardYes, with the device flow or a local redirect
Provisioning users ahead of loginNeither does it. Use SCIMNeither does it. Use SCIM

When someone leaves: disable them in the IdP (stops new logins everywhere), check that SCIM disabled them downstream, revoke sessions in sensitive systems, and look for anything outside SSO such as IAM users, local accounts or personal access tokens.

Try it yourself​

aws configure sso # Set up a profile: start URL, account, permission set
aws sso login --profile dev # Opens the browser, signs in at the IdP
aws sts get-caller-identity --profile dev # ARN shows assumed-role/AWSReservedSSO_...
aws sso-admin list-instances # Identity Center instance and identity store ID
aws sso-admin list-permission-sets --instance-arn <instance-arn>
aws identitystore list-groups --identity-store-id <store-id> # Groups synced from the IdP by SCIM
aws iam generate-credential-report && aws iam get-credential-report \
--query Content --output text | base64 --decode | cut -d, -f1,4,9,10 # Leftover IAM users and active keys
kubectl oidc-login setup --oidc-issuer-url=https://login.example.com --oidc-client-id=kubernetes # kubelogin plugin
kubectl auth whoami # Username and groups from the token

Check yourself

  1. Dana leaves and is disabled in the IdP, which syncs by SCIM. What can still work for a while?
  2. Why assign permission sets to IdP groups instead of individual users?
  3. What must the Kubernetes API server know to accept ID tokens from the company IdP?

Further reading: What is IAM Identity Center? (AWS) · Automatic provisioning with SCIM (AWS) · Kubernetes OIDC authentication · OpenID Connect Core · SCIM protocol (RFC 7644) · How Logging In Works (Sessions, JWT, OIDC) · Permission Checks on One API Request (IAM)