コード例 #1
0
ファイル: RunGoogle2Client.java プロジェクト: jhegg/pac4j
 @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;
 }
コード例 #2
0
ファイル: Google2Client.java プロジェクト: DevFactory/pac4j
 @Override
 protected Google2Client newClient() {
   final Google2Client newClient = new Google2Client();
   newClient.setScope(this.scope);
   return newClient;
 }