updated token introspection output to match spec and client filter

pull/263/merge
Justin Richer 2013-01-30 15:31:32 -05:00
parent e02e08563c
commit 0be254c99a
1 changed files with 4 additions and 2 deletions

View File

@ -95,12 +95,14 @@ public class TokenIntrospectionView extends AbstractView {
} }
token.add("scope", scopes); 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("subject", src.getAuthenticationHolder().getAuthentication().getName());
token.addProperty("client_id", src.getAuthenticationHolder().getAuthentication().getAuthorizationRequest().getClientId());
return token; return token;
} }