Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
916375e8
authored
2016-08-16 15:00:25 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
https
1 parent
488dc678
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
app/Http/Controllers/GoogledriveuploadpdfController.php
app/Http/Controllers/GoogledriveuploadpdfController.php
View file @
916375e
...
...
@@ -42,6 +42,7 @@ class GoogledriveuploadpdfController extends Controller
$client
->
setClientId
(
$user
[
0
]
->
google_client_id
);
$client
->
setClientSecret
(
$user
[
0
]
->
google_client_secret
);
$client
->
setRedirectUri
(
$user
[
0
]
->
redirect_uri
);
$client
->
setAccessType
(
'offline'
);
...
...
@@ -106,10 +107,12 @@ class GoogledriveuploadpdfController extends Controller
$client
=
new
\Google_Client
();
$client
->
setScopes
(
array
(
'https://www.googleapis.com/auth/drive.file'
));
$client
->
setClientId
(
'206523860143-kgs80emhfm1sof79nggd48gnhbl1j6ei.apps.googleusercontent.com'
);
$client
->
setClientSecret
(
'
qmUMAi09SU4wU4R3uOkvsiwK
'
);
$client
->
setRedirectUri
(
'http://
pdf-customizer.synapsus.co
/auth/google/tokenCallback'
);
$client
->
setClientSecret
(
'
ZzEE02Dqz7AKJLSklmL30LNd
'
);
$client
->
setRedirectUri
(
'http://
localhost:8888/pdf-customizer/public
/auth/google/tokenCallback'
);
$client
->
setAccessType
(
'offline'
);
$client
->
setApprovalPrompt
(
'force'
);
if
(
isset
(
$_GET
[
'code'
]))
{
$client
->
authenticate
(
$_GET
[
'code'
]);
...
...
@@ -125,7 +128,7 @@ class GoogledriveuploadpdfController extends Controller
if
(
isset
(
$_REQUEST
[
'logout'
]))
{
unset
(
$_SESSION
[
'token'
]);
$client
->
revokeToken
();
//
$client->revokeToken();
}
?>
<!doctype html>
...
...
Please
register
or
sign in
to post a comment