*/
private void doAuthorizeTokenGet(
HttpServletRequest req, HttpServletResponse resp, ParticipantId user) throws IOException {
Preconditions.checkNotNull(user, "User must be supplied");
// Ask the user for permission.
OAuthAuthorizeTokenPage.write(resp.getWriter(), new GxpContext(req.getLocale()),
DataApiTokenContainer.ACCESS_TOKEN_EXPIRATION, getOrGenerateXsrfToken(user));
resp.setContentType(HTML_CONTENT_TYPE);
resp.setStatus(HttpServletResponse.SC_OK);
return;
}