Add spec-driven Swagger auth controls#1779
Open
krowvin wants to merge 3 commits into
Open
Conversation
krowvin
commented
Jun 11, 2026
krowvin
left a comment
Collaborator
Author
There was a problem hiding this comment.
Few thoughts of my own with these changes
| background: #fafafa; | ||
| } | ||
|
|
||
| .swagger-auth-bar { |
Collaborator
Author
There was a problem hiding this comment.
I was wondering if this should be tailwind css? Preference?
| "dependencies": { | ||
| "@tanstack/react-query": "^5.64.1", | ||
| "@usace-watermanagement/groundwork-water": "^3.3.1", | ||
| "@usace-watermanagement/groundwork-water": "^3.9.0", |
Collaborator
Author
There was a problem hiding this comment.
older GWW only supported direct grant
| proxy: { | ||
| "^/cwms-data/timeseries/.*": { | ||
| target: env.CDA_API_ROOT, | ||
| "/cwms-data/timeseries": { |
Collaborator
Author
There was a problem hiding this comment.
I debated doing one single wildcard for the localhost proxy here
| "https://localhost:5010/*", | ||
| "http://localhost:*" | ||
| "http://localhost:*", | ||
| "http://127.0.0.1:*" |
Collaborator
Author
There was a problem hiding this comment.
Sometimes it'll launch in loopback, othertimes it's localhost. Figured we'd have both.
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.
Summary
Validation
npx.cmd eslint src/pages/swagger-ui/index.jsx --ext js,jsx --report-unused-disable-directives --max-warnings 0npm.cmd run buildScreenshots
With "CWBI Login" selected the locks on the swagger UI are not shown. The hope is to not add login confusion by default. While still allowing the option to authenticate via other means (API key/etc)