Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems getting started ... #378

Closed
katzlbt opened this issue Mar 30, 2015 · 1 comment
Closed

Problems getting started ... #378

katzlbt opened this issue Mar 30, 2015 · 1 comment

Comments

@katzlbt
Copy link

katzlbt commented Mar 30, 2015

Started with an example google.php ...

  1. copied it to my own directory
  2. Included Oauth/bootstrap.php (wrong bootstrap.php!!)
  3. Started 2h search why $currentUri (->getAbsoluteUri()) is not defined.
  4. included the correct bootstrap.php this time ...
  5. require_once DIR . 'Oauth/vendor/autoload.php';
  6. Found vendor on .gitignore
  7. 'Oauth/vendor/autoload.php' should be 'Oauth/bootstrap.php' ??
  8. finally a login panel ... but ...
  9. Fatal error: Uncaught exception 'OAuth\Common\Http\Exception\TokenResponseException' with message 'file_get_contents(https://accounts.google.com/o/oauth2/token): failed to open stream: No such file or directory'

Could you add a README to the examples?
Thanks for pointers.

Found it 'Oauth/vendor/autoload.php' should be 'Oauth/bootstrap.php' this seems to work.
I highly recommend renaming one of the bootstrap.php files to avoid confusion.

@logical-and
Copy link

You should bootstrap OAuth lib by src/bootstrap.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants