Exemplo n.º 1
0
 @Override
 protected IndirectClient getClient() {
   final Google2Client google2Client = new Google2Client();
   google2Client.setKey(
       "682158564078-ndcjc83kp5v7vudikqu1fudtkcs2odeb.apps.googleusercontent.com");
   google2Client.setSecret("gLB2U7LPYBFTxqYtyG81AhLH");
   google2Client.setCallbackUrl(PAC4J_BASE_URL);
   google2Client.setScope(Google2Client.Google2Scope.EMAIL_AND_PROFILE);
   return google2Client;
 }
Exemplo n.º 2
0
 @Override
 protected Google2Client newClient() {
   final Google2Client newClient = new Google2Client();
   newClient.setScope(this.scope);
   return newClient;
 }