Skip to content

refactor(): optimize the code structure#10

Merged
ivyxjc merged 6 commits intomainfrom
feature/ivyxjc
Sep 22, 2025
Merged

refactor(): optimize the code structure#10
ivyxjc merged 6 commits intomainfrom
feature/ivyxjc

Conversation

@ivyxjc
Copy link
Contributor

@ivyxjc ivyxjc commented Jun 5, 2025

No description provided.

@ivyxjc ivyxjc closed this Jun 5, 2025
@ivyxjc ivyxjc reopened this Jun 5, 2025
@ivyxjc
Copy link
Contributor Author

ivyxjc commented Jun 5, 2025

BugBot run

@ivyxjc
Copy link
Contributor Author

ivyxjc commented Jun 5, 2025

bugbot run verbose=true

1 similar comment
@ivyxjc
Copy link
Contributor Author

ivyxjc commented Jun 5, 2025

bugbot run verbose=true

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

Test Results

22 tests  +9   22 ✅ +9   0s ⏱️ ±0s
 3 suites +1    0 💤 ±0 
 3 files   +1    0 ❌ ±0 

Results for commit 661ce54. ± Comparison against base commit 714f9d6.

This pull request removes 13 and adds 22 tests. Note that renamed tests count towards both.
org.clevercastle.authforge.oauth2.github.GithubOauth2ExchangeServiceTest ‑ testGenHttpRequest()
org.clevercastle.authforge.oauth2.github.GithubOauth2ExchangeServiceTest ‑ testParseHttpResponse()
org.clevercastle.authforge.util.CryptoUtilTest ‑ [1] SHA256withECDSA
org.clevercastle.authforge.util.CryptoUtilTest ‑ [2] SHA384withECDSA
org.clevercastle.authforge.util.CryptoUtilTest ‑ [3] SHA512withECDSA
org.clevercastle.authforge.util.CryptoUtilTest ‑ testCrossKeyVerification()
org.clevercastle.authforge.util.CryptoUtilTest ‑ testDerJoseConversionWithDifferentSizes()
org.clevercastle.authforge.util.CryptoUtilTest ‑ testDerToJoseWithHighBit()
org.clevercastle.authforge.util.CryptoUtilTest ‑ testDifferentKeySizes()
org.clevercastle.authforge.util.CryptoUtilTest ‑ testEdgeCaseInputs()
…
org.clevercastle.authforge.core.oauth2.github.GithubOauth2ExchangeServiceTest ‑ testGenHttpRequest()
org.clevercastle.authforge.core.oauth2.github.GithubOauth2ExchangeServiceTest ‑ testParseHttpResponse()
org.clevercastle.authforge.core.totp.TotpUtilTest ‑ testConsistency()
org.clevercastle.authforge.core.totp.TotpUtilTest ‑ testDifferentSecretsDifferentCodes()
org.clevercastle.authforge.core.totp.TotpUtilTest ‑ testDifferentTimesDifferentCodes()
org.clevercastle.authforge.core.totp.TotpUtilTest ‑ testGenerateQRCodeUri()
org.clevercastle.authforge.core.totp.TotpUtilTest ‑ testGenerateSecret()
org.clevercastle.authforge.core.totp.TotpUtilTest ‑ testGenerateTOTP()
org.clevercastle.authforge.core.totp.TotpUtilTest ‑ testTimeWindowTolerance()
org.clevercastle.authforge.core.totp.TotpUtilTest ‑ testVerifyTOTP()
…

♻️ This comment has been updated with latest results.

@ivyxjc
Copy link
Contributor Author

ivyxjc commented Jun 5, 2025

bugbot run

1 similar comment
@ivyxjc
Copy link
Contributor Author

ivyxjc commented Jun 5, 2025

bugbot run

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

Code Coverage Report

There is no coverage information present for the Files changed

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing Accessors in ChallengeResponse Class

The ChallengeResponse class defines private fields (challengeId, type, code) but lacks public getters, setters, and constructors. This prevents external access or modification of the fields and makes the class unusable as a data transfer object, particularly for serialization frameworks. Other similar classes introduced in this commit include proper accessors, indicating this is likely an oversight.

src/main/java/org/clevercastle/authforge/challenge/ChallengeResponse.java#L1-L7

package org.clevercastle.authforge.challenge;
public class ChallengeResponse {
private String challengeId;
private ChallengeType type;
private String code;
}

Fix in Cursor


BugBot free trial expires on June 9, 2025
You have used $0.00 of your $10.00 spend limit so far. Manage your spend limit in the Cursor dashboard.

Was this report helpful? Give feedback by reacting with 👍 or 👎

@ivyxjc ivyxjc changed the title feat(): mfa challenge refactor(): optimize the code structure Sep 22, 2025
@ivyxjc ivyxjc merged commit 3ac5fed into main Sep 22, 2025
1 check passed
@ivyxjc ivyxjc deleted the feature/ivyxjc branch September 22, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant