Add user id to TOKEN_EXCHANGE events
Co-authored-by: thaDude <ogdude@googlemail.com>
This commit is contained in:
parent
2b98fcdecb
commit
82423f38a1
1 changed files with 5 additions and 2 deletions
|
@ -411,7 +411,8 @@ public class DefaultTokenExchangeProvider implements TokenExchangeProvider {
|
|||
}
|
||||
|
||||
AccessTokenResponse res = responseBuilder.build();
|
||||
event.detail(Details.AUDIENCE, targetClient.getClientId());
|
||||
event.detail(Details.AUDIENCE, targetClient.getClientId())
|
||||
.user(targetUser);
|
||||
|
||||
event.success();
|
||||
|
||||
|
@ -460,7 +461,9 @@ public class DefaultTokenExchangeProvider implements TokenExchangeProvider {
|
|||
res.setExpiresIn(assertionLifespan <= 0 ? realm.getAccessCodeLifespan() : assertionLifespan);
|
||||
res.setOtherClaims(OAuth2Constants.ISSUED_TOKEN_TYPE, requestedTokenType);
|
||||
|
||||
event.detail(Details.AUDIENCE, targetClient.getClientId());
|
||||
event.detail(Details.AUDIENCE, targetClient.getClientId())
|
||||
.user(targetUser);
|
||||
|
||||
event.success();
|
||||
|
||||
return cors.builder(Response.ok(res, MediaType.APPLICATION_JSON_TYPE)).build();
|
||||
|
|
Loading…
Reference in a new issue