Skip to content

Conversation

@shaikathaque
Copy link
Member

@shaikathaque shaikathaque commented May 14, 2025

References

ENG-3627

Context / Summary

Returns response headers included in the Authlete ApiResonse from authlete-java-common in the response.

Description / Changes Made

  • Takes the response headers from the result of calling the API and makes them available in the ApiResponse object.

Breaking Changes

No, this approach was chosen with backwards compatibility in mind.

Testing Instructions

  1. Checkout branch retrieve-response-headers of authlete-java-common, authete-java-jaxrs and java-oauth-server
  2. Run mvn clean install -Dgpg.skip=true in each directory to make sure the code changes are installed in your local maven repository
  3. Follow the instructions in https://www.authlete.com/developers/tutorial/signup/. Make sure you correctly configure authlete.properties in java-oauth-server to use your Authlete 3 service.
  4. Follow the instruction in the doc up till the part where you click Send Request. This triggers the /authorize endpoint to be called.
  5. Inspect the logs of java-oauth-server. You should see a the response headers logged, which include a hardcoded request id that was included in the request.
image

Can use these branch to test:
authlete/java-oauth-server@master...retrieve-response-headers
authlete/authlete-java-common#116

Added Tests?

TODO

Related MRs

authlete/authlete-java-common#116

pom.xml Outdated
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<authlete-java-common.version>4.20</authlete-java-common.version>
<authlete-java-common.version>4.21-SNAPSHOT</authlete-java-common.version>
Copy link
Member Author

Choose a reason for hiding this comment

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

Will have to change this before merging.

</configuration>
</plugin>
</reportPlugins>
<!-- <reportPlugins>-->
Copy link
Member Author

@shaikathaque shaikathaque May 14, 2025

Choose a reason for hiding this comment

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

Needed to temporarily comment this because it was preventing me from running mvn clean install -Dgpg.skip=true

@meysam meysam requested a review from CriGoT October 3, 2025 10:43
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.

4 participants