Merge pull request #1203 from mposolda/master

Minor fix in example
This commit is contained in:
Marek Posolda 2015-04-30 13:31:10 +02:00
commit 99c79f9fd7

View file

@ -16,7 +16,6 @@
AccessTokenResponse tokenResponse = ProductDatabaseClient.getTokenResponse(request);
if (tokenResponse.getIdToken() != null) {
IDToken idToken = ServletOAuthClient.extractIdToken(tokenResponse.getIdToken());
out.println("<p><i>Change client claims in admin console to view personal info of user</i></p>");
if (idToken.getPreferredUsername() != null) {
out.println("<p>Username: " + idToken.getPreferredUsername() + "</p>");
}