[Studio] feat: add login and auth page#456
Open
zhaohai666 wants to merge 1 commit into
Open
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.
Summary
Add login and authentication module for RocketMQ Studio, providing user login/logout REST API with JWT token support and Spring Security configuration placeholder.
Files Changed
7 files modified, total 427 line insertions
Source Files (5)
Test Files (2)
Key Design
POST /api/auth/login: Return unified responseResult<LoginVO>carrying mock JWT tokenPOST /api/auth/logout: Return unified empty responseResult<Void>Throw
BusinessExceptionwith error code 400 when username or password is null or blankmock-jwt-{UUID}adminReuse
Result<T>wrapper and globalBusinessExceptiondefined in common module to keep consistent API return formatDependencies
Depends on PR#1 (feature/studio-common-foundation), relies on the unified response
Resultand global business exceptionBusinessExceptionprovided by the common foundation moduleTest Coverage
PR Title Rule Reminder
All PR and Issue titles of this project must start with
[studio]for community quick filtering and tracking.Example:
[studio] feat: add login and JWT authentication module