updated token introspection output to match spec and client filter

pull/263/merge
Justin Richer 12 years ago
parent e02e08563c
commit 0be254c99a

@ -95,12 +95,14 @@ public class TokenIntrospectionView extends AbstractView {
}
token.add("scope", scopes);
token.add("expires", context.serialize(src.getExpiration()));
token.add("expires_at", context.serialize(src.getExpiration()));
token.addProperty("audience", src.getAuthenticationHolder().getAuthentication().getAuthorizationRequest().getClientId());
//token.addProperty("audience", src.getAuthenticationHolder().getAuthentication().getAuthorizationRequest().getClientId());
token.addProperty("subject", src.getAuthenticationHolder().getAuthentication().getName());
token.addProperty("client_id", src.getAuthenticationHolder().getAuthentication().getAuthorizationRequest().getClientId());
return token;
}

Loading…
Cancel
Save