21 lines
1013 B
PHP
21 lines
1013 B
PHP
<?php
|
|
// Google API configuration
|
|
// Instructions for getting your credentials:
|
|
// 1. Go to the Google API Console: https://console.developers.google.com/
|
|
// 2. Create a new project.
|
|
// 3. Go to "APIs & Services" -> "Credentials".
|
|
// 4. Click "Create Credentials" -> "OAuth client ID".
|
|
// 5. Select "Web application" for the application type.
|
|
// 6. Under "Authorized redirect URIs", add the EXACT redirect URI for your application.
|
|
// You can find the correct URI by temporarily adding the following line to your index.php:
|
|
// echo "Your Redirect URI is: " . GOOGLE_REDIRECT_URI;
|
|
// 7. Click "Create".
|
|
// 8. Copy the "Client ID" and "Client Secret" and paste them below.
|
|
|
|
define('GOOGLE_CLIENT_ID', '105420142772-pfmcst2vhtm9to0tmaeonua2varbb0qd.apps.googleusercontent.com');
|
|
define('GOOGLE_CLIENT_SECRET', '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');
|
|
|
|
// Set the redirect URI to use https, as required for production apps.
|
|
define('GOOGLE_REDIRECT_URI', 'https://' . $_SERVER['HTTP_HOST'] . '/callback.php');
|
|
?>
|