oauth2-server-php icon indicating copy to clipboard operation
oauth2-server-php copied to clipboard

Question regarding Token Controller

Open Jiekai opened this issue 10 years ago • 2 comments

Hi Brian, I tried implementing your OAuth2 solution but on creating the Token Controller, I get this error whenever I run it:

Warning: require_once(oauth2-server-php/src/OAuth2/Autoloader.php): failed to open stream: No such file or directory in /var/www/html/oauth2-server-php/server.php on line 16

Fatal error: require_once(): Failed opening required 'oauth2-server-php/src/OAuth2/Autoloader.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/oauth2-server-php/server.php on line 16

Any idea what's causing this to happen?

Jiekai avatar Dec 08 '15 20:12 Jiekai

Looks like you were able to solve this issue? It is recommended you use composer instead of the built-in autoloader.

bshaffer avatar Dec 08 '15 21:12 bshaffer

Hey Brent, I solved it. Turns out it was a simple directory error.

Date: Tue, 8 Dec 2015 13:16:42 -0800 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [oauth2-server-php] Question regarding Token Controller (#679)

Looks like you were able to solve this issue?

It is recommended you use composer instead of the built-in autoloader.

— Reply to this email directly or view it on GitHub.

Jiekai avatar Dec 08 '15 21:12 Jiekai