Skip to content

fix(auth): allow prompt=none silent SSO to resume federated sessions (#14897) - #14902

Merged
soberm merged 1 commit into
aws-amplify:mainfrom
soberm:fix/auth-prompt-none-federated-sso
Aug 3, 2026
Merged

fix(auth): allow prompt=none silent SSO to resume federated sessions (#14897)#14902
soberm merged 1 commit into
aws-amplify:mainfrom
soberm:fix/auth-prompt-none-federated-sso

Conversation

@soberm

@soberm soberm commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description of changes

With options: { prompt: 'NONE' }, signInWithRedirect still appended identity_provider=COGNITO to the authorize request. Cognito treats that parameter as a provider selector, so a live hosted UI session that came from a federated IdP (for example Google or SAML) was not resumed and Cognito returned error=login_required.

identity_provider is now omitted when prompt is NONE and neither provider nor idpIdentifier is specified, letting Cognito resume whichever session is already active. Interactive behavior is unchanged (a no-argument call still sends identity_provider=COGNITO), and there is no public API change.

Issue #, if available

Fixes #14897

Description of how you validated changes

Added unit tests covering the silent SSO path and the unchanged explicit-provider, idpIdentifier, and non-NONE prompt paths; the full packages/auth suite (1150 tests) and the build pass.

Checklist

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@soberm
soberm requested review from a team, avi-karthik, pranavosu and sarayev as code owners July 30, 2026 11:45
@changeset-bot

changeset-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: cca5a07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@aws-amplify/auth Patch
@aws-amplify/pubsub Patch
aws-amplify Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@soberm
soberm merged commit 4661401 into aws-amplify:main Aug 3, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

signInWithRedirect always sends identity_provider=COGNITO, preventing Cognito from resuming a federated session

4 participants