feat: add OAuth credential type to add identity TUI wizard#464
Open
aidandaly24 wants to merge 7 commits intoaws:feat/gateway-integrationfrom
Open
feat: add OAuth credential type to add identity TUI wizard#464aidandaly24 wants to merge 7 commits intoaws:feat/gateway-integrationfrom
aidandaly24 wants to merge 7 commits intoaws:feat/gateway-integrationfrom
Conversation
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.
Description
Add OAuth credential support to the identity TUI wizard and integrate it into the gateway target flow for credential reuse. Also fixes several deploy UX bugs and terminology inconsistencies.
OAuth in identity wizard: Previously, the interactive wizard only supported API Key credentials. This adds OAuth as a selectable option, collecting: credential name, OIDC discovery URL (validated to end with
/.well-known/openid-configuration), client ID (masked), client secret (masked), and scopes (optional).Credential reuse in gateway target flow: When adding a gateway target with OAuth outbound auth, users can now reuse existing OAuth credentials from agentcore.json instead of creating one inline every time. If no OAuth credentials exist, the flow goes directly to creation. If they exist, the user picks an existing one or creates new — which delegates to the identity wizard screen (with the type step pre-selected to OAuth). This replaces ~150 lines of duplicated inline credential creation with a flow-level transition to the identity screen.

Deploy fixes:
Other:
Related Issue
N/A — prerequisite for CUSTOM_JWT inbound auth (Task 17)
Documentation PR
N/A
Type of Change
Testing
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.