Skip to content
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

[ELY-2610] migrate getAccessTokenHash method to AtValidator class. #2001

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

sugan0tech
Copy link
Contributor

@@ -263,7 +263,7 @@ public ErrorCodeValidator.Error validate(JwtContext jwtContext) throws Malformed
String atHash = jwtClaims.getStringClaimValue(AT_HASH);
String actualHash;
try {
actualHash = getAccessTokenHash(accessTokenString, jwsAlgorithm);
actualHash = getAccessTokenHash(accessTokenString, jwsAlgorithm);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a very small thing, but just noticed that an extra white space was added here. In general, it's good practice to avoid making unrelated white space changes in PRs.

*
* @return the access token hash claim
*/
public String getAccessTokenHash() {
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need to remove this method. This method is different from the private getAccessTokenHash method in the TokenValidator file.

Copy link
Contributor

@fjuma fjuma left a comment

Choose a reason for hiding this comment

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

Thanks @sugan0tech, looks good!

@Skyllarr Skyllarr merged commit 5f64e2a into wildfly-security:2.x Oct 12, 2023
3 checks passed
@sugan0tech sugan0tech deleted the sugan0tech/ELY-2610 branch October 18, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants