coheigea commented on code in PR #3358:
URL: https://github.com/apache/cxf/pull/3358#discussion_r3750384295
##########
rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JPACMTCodeDataProvider.java:
##########
@@ -129,12 +132,37 @@ protected RefreshToken
updateExistingRefreshToken(RefreshToken rt, ServerAccessT
return super.updateExistingRefreshToken(rt, at);
}
+ @Override
+ public ServerAuthorizationCodeGrant removeCodeGrant(final String code)
throws OAuthServiceException {
+ return executeInTransaction(em -> findAndRemoveWithLock(code, em));
+ }
+
+ @Override
+ protected ServerAuthorizationCodeGrant removeCodeGrant(String code,
EntityManager em,
+ LockModeType
lockModeType) throws OAuthServiceException {
+ return executeInTransaction(innerEm -> findAndRemoveWithLock(code,
innerEm));
Review Comment:
Yes I removed that one, the method is only ever called by the subclass which
is already in a transaction.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]