Files
floci/docs/services/ssooidc.md
T
Franklin G. Mendoza cbfa034470 feat(identity-center): complete IAM Identity Center emulation (#3331)
* feat(ssoadmin): add region operation

* feat(ssoadmin): attach customer managed policies

* feat(ssoadmin): create applications

* feat(ssoadmin): create application assignments

* feat(ssoadmin): create account instances

* feat(ssoadmin): create ABAC configuration

* feat(ssoadmin): create trusted token issuers

* feat(ssoadmin): delete account assignments

* feat(ssoadmin): delete applications

* feat(ssoadmin): delete application access scopes

* feat(ssoadmin): delete application assignments

* feat(ssoadmin): delete application authentication methods

* feat(ssoadmin): delete application grants

* feat(ssoadmin): delete identity center instances

* feat(ssoadmin): list principal account assignments

* feat(ssoadmin): provision permission sets

* feat(ssoadmin): list provisioned permission sets

* feat(ssoadmin): list accounts for provisioned permission set

* feat(ssoadmin): describe permission set provisioning status

* feat(ssoadmin): list permission set provisioning status

* feat(ssoadmin): describe account assignment deletion status

* feat(ssoadmin): list account assignment creation status

* feat(ssoadmin): list account assignment deletion status

* feat(ssoadmin): delete permission sets

* feat(ssoadmin): detach customer managed policy references

* feat(ssoadmin): list customer managed policy references

* feat(ssoadmin): get inline permission set policies

* feat(ssoadmin): put permission set boundaries

* feat(ssoadmin): get permission set boundaries

* feat(ssoadmin): delete permission set boundaries

* feat(scim): create groups

* feat(scim): create users

* feat(scim): delete groups

* feat(scim): delete users

* feat(scim): get groups

* feat(scim): get users

* feat(scim): list groups

* feat(scim): list users

* feat(scim): get schemas

* feat(scim): list schemas

* feat(scim): list resource types

* feat(scim): add service provider config

* feat(scim): patch groups

* feat(scim): patch users

* feat(scim): put users

* feat(ssoadmin): delete ABAC configuration

* feat(ssoadmin): delete trusted token issuers

* feat(ssoadmin): describe applications

* feat(ssoadmin): describe application assignments

* feat(ssoadmin): describe instances

* feat(ssoadmin): describe ABAC configuration

* feat(ssoadmin): describe regions

* feat(ssoadmin): describe trusted token issuers

* feat(ssoadmin): describe application providers

* feat(ssoadmin): list application assignments

* feat(ssoadmin): list principal application assignments

* feat(ssoadmin): list applications

* feat(ssoadmin): list application providers

* feat(ssoadmin): list regions

* feat(ssoadmin): list trusted token issuers

* feat(ssoadmin): put application access scopes

* feat(ssoadmin): get application access scopes

* feat: support listing application access scopes

* feat(ssoadmin): get application assignment configuration

* feat(ssoadmin): put application assignment configuration

* feat(ssoadmin): get application authentication methods

* feat(ssoadmin): put application authentication methods

* feat(ssoadmin): list application authentication methods

* feat(ssoadmin): get application grants

* feat(ssoadmin): put application grants

* feat(ssoadmin): list application grants

* feat(ssoadmin): get application session configuration

* feat(ssoadmin): put application session configuration

* feat(ssoadmin): list resource tags

* feat(ssoadmin): tag resources

* feat(ssoadmin): untag resources

* feat(ssoadmin): remove regions

* feat(ssoadmin): update applications

* feat(ssoadmin): update instances

* feat(ssoadmin): update ABAC configuration

* feat(ssoadmin): update trusted token issuers

* feat(ssooidc): register clients

* feat(ssooidc): start device authorization

* feat(ssooidc): create public client tokens

* feat(ssooidc): create IAM-authenticated tokens

* feat(ssoportal): list assigned accounts

* feat(ssoportal): list assigned account roles

* feat(ssoportal): issue assigned role credentials

* feat(ssoportal): invalidate portal sessions

* docs(ssoadmin): report complete operation count

* fix(identity-center): repair CI validation

* fix(identity-center): harden auth and native build

* fix(ssooidc): disambiguate RestAssured query parameter

* fix(identity-center): resolve CI compatibility failures

* fix(identity-center): address maintainer review

* fix(ssoadmin): preserve application provider partition

* fix(identity-center): repair Java compatibility tests

* fix(identity-center): trust local TLS in browser flows

* fix(identity-center): register refresh token grant in SDK test
2026-09-10 16:34:41 -04:00

3.6 KiB

AWS IAM Identity Center OIDC

Protocol: REST JSON

Endpoint: http://localhost:4566

Floci emulates the IAM Identity Center OIDC registration and token endpoints used by public OAuth 2.0 clients.

Supported Actions

Action Description
RegisterClient Registers a public OIDC client, persists its generated client credentials, and returns local authorization and token endpoints.
StartDeviceAuthorization Validates a registered public client and creates a persisted short-lived device authorization challenge.
CreateToken Exchanges device, PKCE authorization-code, or refresh-token grants for persisted bearer and refresh tokens.
CreateTokenWithIAM Uses SigV4 and an application's IAM ActorPolicy to issue downscoped tokens for authorization-code, refresh-token, JWT-bearer, and token-exchange grants.

RegisterClient supports the authorization-code, device-code, and refresh-token grant identifiers documented by AWS. Client registrations are persisted so later device authorization and token operations can authenticate the generated client ID and secret.

StartDeviceAuthorization validates the client credentials and stores the generated device and user codes for later token polling. Floci uses a 10-minute device-code lifetime and a 5-second polling interval as local emulator defaults.

CreateToken supports all three AWS-documented public-client grants. Device authorization can be completed locally by visiting the returned /device?user_code=... URL. Authorization Code uses the local /authorize endpoint with PKCE S256 and registered redirect URIs. Portal-capable local authorization never trusts a caller-selected identity: configure FLOCI_SERVICES_SSOOIDC_LOCAL_PRINCIPAL_ID to bind these local authorization helpers to one Identity Store principal. A mismatched principal_id is rejected, and when no local principal is configured the resulting public OIDC session is not associated with a Portal identity. Floci issues one-hour access tokens and 30-day refresh tokens as emulator defaults; the public API documentation does not define fixed lifetimes for these values. The scope request is intentionally ignored because AWS states that this operation always grants the scopes configured during client registration.

CreateTokenWithIAM requires SigV4 and reads the application's IAM authentication method, OAuth grants, and access scopes from the SSO Admin service. ActorPolicy evaluation honors explicit deny and supports wildcard or account/root principals that Floci can resolve from the signing credential. Role- and user-specific principal ARNs are denied because the current request context retains account and Region but not the exact signing principal ARN. JWT Bearer validates JWT structure, expiration, issuer, and audience against the configured trusted token issuer and grant; it does not perform external JWKS signature verification in the local emulator. Token Exchange requires a token issued to a different IAM application and an authorized target on one of the subject token's scopes.

OIDC failures use the AWS response shape with error and error_description. The local emulator assigns a 90-day client-secret lifetime; AWS documents the expiration timestamp but does not publish a fixed lifetime for this operation.

See the IAM Identity Center OIDC API Reference.

Configuration

Variable Default Description
FLOCI_SERVICES_SSOOIDC_ENABLED true Enable or disable IAM Identity Center OIDC