feat(gen2-migration): add additional auth mode config in defineData independent of defaultConfig#14496
Merged
iliapolo merged 14 commits intoaws-amplify:gen2-migrationfrom Feb 26, 2026
Merged
Conversation
iliapolo
requested changes
Jan 21, 2026
Contributor
iliapolo
left a comment
There was a problem hiding this comment.
Please update the migration guides of each individual app to remove the now un-necessary manual steps.
- Process additionalAuthenticationProviders alongside default auth mode - Refactor auth mode config generation to eliminate code duplication - Extract common auth mode logic into reusable helper function
- Add configuration processing for default auth modes that need settings - Handle cases where default and additional providers use same auth type - Ensure both defaultAuthorizationMode and specific mode configs are generated
- Fix lambda auth to read ttlSeconds from provider level instead of nested config - Fix OIDC auth to read openIDIssuerURL/openIDClientID from provider level - Add tests for both lambda and OIDC auth with correct Gen1 format
e093c34 to
489402f
Compare
…tional auth provider interface
iliapolo
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #14484
Summary:
Documentation:
https://docs.amplify.aws/gen1/android/build-a-backend/graphqlapi/customize-authz-modes/
Tests performed: Unit tests
Input
Output
amplify/data/resource.ts
amplify/backend.ts
Instructions for future refactoring the data category code:
and print escape hatches using the Gen1 interface