chore: add callback URL for swagger-ui - #2514
Merged
Merged
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds the Swagger UI OAuth2 redirect callback URL to the Cognito user pool client’s allowed callback URLs for the Trustify admin example. Sequence diagram for Swagger UI OAuth2 redirect callback integrationsequenceDiagram
actor AdminUser
participant SwaggerUI
participant CognitoUserPoolClient
AdminUser->>SwaggerUI: open swagger-ui
SwaggerUI->>CognitoUserPoolClient: authorize (callback swagger-ui/oauth2-redirect.html)
CognitoUserPoolClient-->>AdminUser: redirect to swagger-ui/oauth2-redirect.html with code
AdminUser->>SwaggerUI: GET swagger-ui/oauth2-redirect.html
SwaggerUI->>CognitoUserPoolClient: token request with code
CognitoUserPoolClient-->>SwaggerUI: access token
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2514 +/- ##
==========================================
+ Coverage 71.68% 71.69% +0.01%
==========================================
Files 456 456
Lines 27673 27673
Branches 27673 27673
==========================================
+ Hits 19837 19841 +4
+ Misses 6692 6683 -9
- Partials 1144 1149 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ctron
approved these changes
Jul 15, 2026
|
Successfully created backport PR for |
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.
When trying to login using the TPA 3.x swagger-ui web interface, the
/swagger-ui/oauth2-redirect.htmlpath is used as a redirect. However, Cognito does not recognize this URL by default. This fixes the issue.