-
Notifications
You must be signed in to change notification settings - Fork 282
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
Conversation
http/oidc/src/main/java/org/wildfly/security/http/oidc/TokenValidator.java
Outdated
Show resolved
Hide resolved
17c8dc4
to
9f99df6
Compare
@@ -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); |
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.
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() { |
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.
We don't need to remove this method. This method is different from the private getAccessTokenHash
method in the TokenValidator
file.
9f99df6
to
4198c90
Compare
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.
Thanks @sugan0tech, looks good!
https://issues.redhat.com/browse/ELY-2610