-
Notifications
You must be signed in to change notification settings - Fork 9
v1.4.0 #76
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
v1.4.0 #76
Conversation
nilsbehlen
commented
May 16, 2025
- PIResponse class can return the transaction based on the mode/type, which currently are Push, WebAuthn, Passkey and OTP.
- HTTP request headers are logged
- WebAuthn class as derived class of Challenge has been removed to allow simple serialization of PIResponse
- allowCredentials for WebAuthnSignRequests are merged when the PIResponse object is created and the combined SignRequest is set to PIResponse.webAuthnSignRequest. WebAuthn challenges are not in the multi_challenge list anymore!
* PIResponse class can return the transaction based on the mode/type, which currently are Push, WebAuthn, Passkey and OTP. * HTTP request headers are logged * WebAuthn class as derived class of Challenge has been removed to allow simple serialization of PIResponse * allowCredentials for WebAuthnSignRequests are merged when the PIResponse object is created and the combined SignRequest is set to PIResponse.webAuthnSignRequest. WebAuthn challenges are not in the multi_challenge list anymore!
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.
Pull Request Overview
This PR introduces several changes for version 1.4.0 aimed at improving how PIResponse handles various transaction types, refining HTTP header logging, and simplifying the code by removing the WebAuthn class. Key changes include:
- Updating PIResponse to return transaction IDs and merging WebAuthn sign requests.
- Removing the derived WebAuthn class and adjusting related API logic.
- Logging HTTP request headers in a cleaner format.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/test/java/org/privacyidea/TestWebAuthn.java | Commented-out code removed (was used to check WebAuthn instance behavior). |
| src/main/java/org/privacyidea/WebAuthn.java | Entire file removed to simplify serialization in PIResponse. |
| src/main/java/org/privacyidea/PIResponse.java | Added transaction ID getters and changed the behavior of webAuthnSignRequests method. |
| src/main/java/org/privacyidea/PIConstants.java | Updated constant "USERHANDLE" to follow camelCase. |
| src/main/java/org/privacyidea/JSONParser.java | Adjusted merging of WebAuthn sign requests by updating the method signature. |
| src/main/java/org/privacyidea/Endpoint.java | Modified HTTP header logging to remove newlines. |
| src/main/java/org/privacyidea/Challenge.java | Changed "attributes" from a List to a Map and updated related getters. |
| Changelog.md | Updated changelog to reflect the changes of version 1.4.0. |
the tests are bad currently
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.