Skip to content

Commit

Permalink
feat(jans-auth-server): updated mau on refreshing access token #2955 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyz authored Nov 17, 2022
1 parent 4d9750f commit 56de619
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import io.jans.as.server.service.external.ExternalUpdateTokenService;
import io.jans.as.server.service.external.context.ExternalResourceOwnerPasswordCredentialsContext;
import io.jans.as.server.service.external.context.ExternalUpdateTokenContext;
import io.jans.as.server.service.stat.StatService;
import io.jans.as.server.uma.service.UmaTokenService;
import io.jans.as.server.util.ServerUtil;
import io.jans.orm.exception.AuthenticationException;
Expand Down Expand Up @@ -140,6 +141,9 @@ public class TokenRestWebServiceImpl implements TokenRestWebService {
@Inject
private TokenCreatorService tokenCreatorService;

@Inject
private StatService statService;

@Override
public Response requestAccessToken(String grantType, String code,
String redirectUri, String username, String password, String scope,
Expand Down Expand Up @@ -368,6 +372,7 @@ private Response processRefreshTokenGrant(String scope, String refreshToken, Fun

tokenExchangeService.rotateDeviceSecretOnRefreshToken(executionContext.getHttpRequest(), authorizationGrant, scope);

statService.reportActiveUser(authorizationGrant.getUserId());
auditLog.updateOAuth2AuditLog(authorizationGrant, true);

return response(Response.ok().entity(getJSonResponse(accToken,
Expand Down

0 comments on commit 56de619

Please sign in to comment.