Class IdentityCenterOidcConfiguration
- All Implemented Interfaces:
OidcConfiguration
IAM Identity Center is an enterprise single sign-on (SSO) service that provides:
- Centralized access management across AWS accounts
- Integration with external identity providers (Active Directory, Okta, etc.)
- SAML 2.0 and OIDC support
- Fine-grained permissions
- Multi-account access
Important: IAM Identity Center and Cognito are completely separate systems.
- IAM Identity Center: Enterprise SSO, integrates with corporate directories
- Cognito: Standalone user directory for customer-facing apps
IAM Identity Center OIDC Setup:
- Create a custom OIDC application in IAM Identity Center console
- Configure redirect URLs for your application
- Note the client ID and client secret
- Store client secret in AWS Secrets Manager
- Use this configuration to wire up application OIDC
Identity Center OIDC Endpoints:
- Authorization: https://{tenant}.awsapps.com/start/oauth2/authorize
- Token: https://{tenant}.awsapps.com/start/oauth2/token
- UserInfo: https://{tenant}.awsapps.com/start/oauth2/userInfo
- JWKS: https://{tenant}.awsapps.com/start/.well-known/jwks.json
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the admin group name for role mapping.Returns the OIDC authorization endpoint.Returns the OAuth 2.0 client ID.Returns the AWS Secrets Manager ARN for the client secret.Returns the claim name for group membership.Returns the Identity Store ID.Returns the OIDC issuer URL.Returns the OIDC JWKS (JSON Web Key Set) endpoint.Returns the OIDC provider type.Returns the redirect URL for this application.Returns the AWS region.Returns the OAuth 2.0 scopes requested by this application.Returns the Identity Center tenant.Returns the OIDC token endpoint.Returns the OIDC userinfo endpoint.Returns the claim name for username mapping.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.cloudforge.core.interfaces.OidcConfiguration
getAdditionalProperties, getApplicationUrl, getDeveloperGroupName, getEmailClaim, getFullNameClaim, getLogoutEndpoint, getViewerGroupName, isAutoCreateUsers, isGroupBasedAccessEnabled, usePkce
-
Constructor Details
-
IdentityCenterOidcConfiguration
public IdentityCenterOidcConfiguration(String region, String identityStoreId, String tenant, String clientId, String clientSecretArn, String redirectUrl, String adminGroupName) Creates an IAM Identity Center OIDC configuration.- Parameters:
region- AWS region where Identity Center is configuredidentityStoreId- Identity Store ID (e.g., d-1234567890)tenant- Identity Center tenant/portal URL prefixclientId- OAuth 2.0 client ID from Identity Center applicationclientSecretArn- Secrets Manager ARN for client secretredirectUrl- Application callback URLadminGroupName- Admin group name from Identity Center for role mapping
-
-
Method Details
-
getProviderType
Description copied from interface:OidcConfigurationReturns the OIDC provider type.- Specified by:
getProviderTypein interfaceOidcConfiguration- Returns:
- provider type (cognito, identity-center, external)
-
getIssuerUrl
Description copied from interface:OidcConfigurationReturns the OIDC issuer URL. This is the base URL for the OIDC provider.Examples:
- Cognito: https://cognito-idp.{region}.amazonaws.com/{userPoolId}
- Identity Center: https://{tenant}.awsapps.com/start
- Specified by:
getIssuerUrlin interfaceOidcConfiguration- Returns:
- issuer URL
-
getAuthorizationEndpoint
Description copied from interface:OidcConfigurationReturns the OIDC authorization endpoint.This is where users are redirected to authenticate.
- Specified by:
getAuthorizationEndpointin interfaceOidcConfiguration- Returns:
- authorization endpoint URL
-
getTokenEndpoint
Description copied from interface:OidcConfigurationReturns the OIDC token endpoint.This is where applications exchange authorization codes for tokens.
- Specified by:
getTokenEndpointin interfaceOidcConfiguration- Returns:
- token endpoint URL
-
getUserInfoEndpoint
Description copied from interface:OidcConfigurationReturns the OIDC userinfo endpoint.This is where applications retrieve user profile information.
- Specified by:
getUserInfoEndpointin interfaceOidcConfiguration- Returns:
- userinfo endpoint URL
-
getJwksUri
Description copied from interface:OidcConfigurationReturns the OIDC JWKS (JSON Web Key Set) endpoint.This is where applications retrieve public keys to verify JWT signatures.
- Specified by:
getJwksUriin interfaceOidcConfiguration- Returns:
- JWKS endpoint URL
-
getClientId
Description copied from interface:OidcConfigurationReturns the OAuth 2.0 client ID.This is the application identifier registered with the OIDC provider.
- Specified by:
getClientIdin interfaceOidcConfiguration- Returns:
- client ID
-
getClientSecretArn
Description copied from interface:OidcConfigurationReturns the AWS Secrets Manager ARN for the client secret.The client secret is stored securely in AWS Secrets Manager. Applications retrieve it at runtime using IAM permissions.
- Specified by:
getClientSecretArnin interfaceOidcConfiguration- Returns:
- Secrets Manager ARN for client secret
-
getRedirectUrl
Description copied from interface:OidcConfigurationReturns the redirect URL for this application.This is the callback URL where the OIDC provider redirects after authentication. Typically: https://{application-domain}/oauth2/callback or similar.
- Specified by:
getRedirectUrlin interfaceOidcConfiguration- Returns:
- redirect URL
-
getScopes
Description copied from interface:OidcConfigurationReturns the OAuth 2.0 scopes requested by this application.Common scopes: openid, profile, email, groups
- Specified by:
getScopesin interfaceOidcConfiguration- Returns:
- space-separated list of scopes
-
getUsernameClaim
Description copied from interface:OidcConfigurationReturns the claim name for username mapping.This JWT claim is used as the application username.
Common values: preferred_username, email, sub
- Specified by:
getUsernameClaimin interfaceOidcConfiguration- Returns:
- username claim name
-
getGroupsClaim
Description copied from interface:OidcConfigurationReturns the claim name for group membership.This is used for role-based access control in applications.
Common values: cognito:groups, groups
- Specified by:
getGroupsClaimin interfaceOidcConfiguration- Returns:
- groups claim name (optional)
-
getAdminGroupName
Description copied from interface:OidcConfigurationReturns the admin group name for role mapping.Users in this group receive admin privileges in the application.
- Specified by:
getAdminGroupNamein interfaceOidcConfiguration- Returns:
- admin group name (optional)
-
getIdentityStoreId
Returns the Identity Store ID.- Returns:
- identity store ID
-
getRegion
Returns the AWS region.- Returns:
- region
-
getTenant
Returns the Identity Center tenant.- Returns:
- tenant ID
-
toString
-