Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
banners-with-skip
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
d0d87e88
authored
2017-01-13 11:27:14 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
58c1499e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
signin.php
signin.php
View file @
d0d87e8
...
...
@@ -102,10 +102,12 @@ $app->post('/connect', function (Request $request) use ($app, $client) {
// implement this best practice.
//$app['session']->set('state', '');
$code
=
$request
->
getContent
();
$code
=
$request
->
getContent
();
// Exchange the OAuth 2.0 authorization code for user credentials.
error_log
(
$client
->
authenticate
(
$code
)
);
$client
->
authenticate
(
$code
);
$token
=
json_decode
(
$client
->
getAccessToken
());
$_SESSION
[
'token'
]
=
$token
;
...
...
Please
register
or
sign in
to post a comment