Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/googleoauth/GoogleOauthServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
req.getSession().setAttribute("access_token", accessToken);

// get some info about the user with the access token
String json = get(new StringBuilder("https://www.googleapis.com/oauth2/v1/userinfo?access_token=").append(accessToken).toString());
String json = get(new StringBuilder("https://www.googleapis.com/plus/v1/people/me?access_token=").append(accessToken).toString());

// now we could store the email address in session

Expand Down