Compare client_ids instead of Client objects

pull/477/head
Amanda Anganes 2013-08-19 16:55:56 -04:00
parent 3eae6f2789
commit 941e9544e2
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ public class IntrospectionEndpoint {
if (authClient.isAllowIntrospection()) {
// if it's the same client that the token was issued to, or it at least has all the scopes the token was issued with
if (authClient.equals(tokenClient) || authClient.getScope().containsAll(scopes)) {
if (authClient.getClientId().equals(tokenClient.getClientId()) || authClient.getScope().containsAll(scopes)) {
// if it's a valid token, we'll print out information on it
model.addAttribute("entity", token);