@Test public void shouldPermitIntrospectionToSameClientTheTokenWasIssuedTo() { String sameClient = "same"; boolean permitted = introspectionPermitter.isIntrospectionPermitted( clientWithId(sameClient), clientWithId(sameClient), scope("scope")); assertThat(permitted, is(true)); }
@Override public boolean isIntrospectionPermitted(ClientDetails authClient, ClientDetails tokenClient, Set<String> tokenScope) { return authClient.getClientId().equals(tokenClient.getClientId()) || scopeService.scopesMatch(authClient.getScope(), tokenScope); }
DefaultIntrospectionAuthorizer implements IntrospectionAuthorizer { @Override public boolean isIntrospectionPermitted(ClientDetails authClient, ClientDetails tokenClient, Set<String> tokenScope) { return authClient.getClientId().equals(tokenClient.getClientId()) || scopeService.scopesMatch(authClient.getScope(), tokenScope); } }
DefaultIntrospectionAuthorizer implements IntrospectionAuthorizer { @Override public boolean isIntrospectionPermitted(ClientDetails authClient, ClientDetails tokenClient, Set<String> tokenScope) { return authClient.getClientId().equals(tokenClient.getClientId()) || scopeService.scopesMatch(authClient.getScope(), tokenScope); }  }
DefaultIntrospectionAuthorizer implements IntrospectionAuthorizer { @Override public boolean isIntrospectionPermitted(ClientDetails authClient, ClientDetails tokenClient, Set<String> tokenScope) { return authClient.getClientId().equals(tokenClient.getClientId()) || scopeService.scopesMatch(authClient.getScope(), tokenScope); }  @Override boolean isIntrospectionPermitted(ClientDetails authClient,
			ClientDetails tokenClient, Set<String> tokenScope); }
DefaultIntrospectionAuthorizer implements IntrospectionAuthorizer { @Override public boolean isIntrospectionPermitted(ClientDetails authClient, ClientDetails tokenClient, Set<String> tokenScope) { return authClient.getClientId().equals(tokenClient.getClientId()) || scopeService.scopesMatch(authClient.getScope(), tokenScope); }  @Override boolean isIntrospectionPermitted(ClientDetails authClient,
			ClientDetails tokenClient, Set<String> tokenScope);  }