-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔧 local configuration to include sso route and frontend #322
🔧 local configuration to include sso route and frontend #322
Conversation
WalkthroughThe pull request introduces modifications to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Gateway
participant SSOService
User->>Gateway: Request /api/sso/userinfo
Gateway->>Gateway: Rewrite path to /auth/realms/local_realm/protocol/openid-connect/userinfo
Gateway->>SSOService: Forward request to http://localhost:8100/
SSOService-->>Gateway: Return user info
Gateway-->>User: Respond with user info
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
refarch-gateway/src/main/resources/application-local.yml (2)
38-38
: Add newline at end of fileAdd a newline character at the end of the file to comply with YAML formatting standards.
- scope: profile, openid + scope: profile, openid +🧰 Tools
🪛 yamllint (1.35.1)
[error] 38-38: no new line character at the end of file
(new-line-at-end-of-file)
Line range hint
1-38
: Consider adding configuration documentationThe gateway configuration is growing more complex with multiple routes and security settings. Consider:
- Adding a header comment explaining the overall gateway architecture
- Documenting the relationship between routes (SSO, backend, frontend)
- Creating/updating architecture documentation to reflect these local development settings
This will help new developers understand the local setup more easily.
Would you like me to help draft the documentation?
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
refarch-gateway/src/main/resources/application-local.yml
(3 hunks)
🧰 Additional context used
🪛 yamllint (1.35.1)
refarch-gateway/src/main/resources/application-local.yml
[error] 38-38: no new line character at the end of file
(new-line-at-end-of-file)
🔇 Additional comments (2)
refarch-gateway/src/main/resources/application-local.yml (2)
7-12
: Verify SSO route configuration with Keycloak setup
The SSO route configuration looks correct for a local Keycloak setup, but please ensure:
- The port 8100 matches your local Keycloak instance
- The realm name 'local_realm' matches your Keycloak configuration
Consider adding a comment above the SSO route to document the purpose and relationship with Keycloak for better maintainability.
21-21
: Verify frontend development server port
The URI has been updated to port 8081, which is not a standard Vite development server port. Please confirm:
- If this port matches your frontend's development configuration
- If this change is intentional (moving from preview port 4173 to 8081)
Description
Reference
Issues #321
Summary by CodeRabbit
New Features
Updates