CommonHelper.assertTrue(client instanceof IndirectClient, "only indirect clients are allowed on the callback url");
final Credentials credentials;
try {
credentials = client.getCredentials(context);
} catch (final RequiresHttpAction e) {
<BUG>return httpActionAdapter.handle(e.getCode(), context);
</BUG>
}
logger.debug("credentials: {}", credentials);
final UserProfile profile = client.getUserProfile(credentials, context);

CommonHelper.assertTrue(client instanceof IndirectClient, "only indirect clients are allowed on the callback url");
final Credentials credentials;
try {
credentials = client.getCredentials(context);
} catch (final RequiresHttpAction e) {
return (Result) config.getHttpActionAdapter().adapt(e.getCode(), context);
}
logger.debug("credentials: {}", credentials);
final UserProfile profile = client.getUserProfile(credentials, context);
