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

php oauth2 - gives error 401 #47

Open
msyadav88 opened this issue Sep 23, 2015 · 2 comments
Open

php oauth2 - gives error 401 #47

msyadav88 opened this issue Sep 23, 2015 · 2 comments

Comments

@msyadav88
Copy link

I got code for php oauth2 from here https://github.com/adoy/PHP-OAuth2
I have created the test.php but when executing the script i got this error .
http://172.16.1.26/test2/test.php?code=wxsthleqgbwwxs8iqeydmiuy4q2g2zygyjt1lt9m

Array
(
[result] => You need to enter a Username and a Password if you want to see this website.
[code] => 401
[content_type] => text/html; charset=utf-8
)

Please guide me.

@msyadav88
Copy link
Author

On other demo , i got below error response
Array
(
[result] => Array
(
[error] => invalid_request
[error_description] => Unknown request
)
[code] => 400
[content_type] => application/json
)
I am executing the php auth code from local and the wordpress is on live. Is this is creating any problem?

@akshayvinchurkar
Copy link

same error

Array
(
[result] => Array
(
[error] => invalid_request
[error_description] => Unknown request
)

[code] => 400
[content_type] => application/json

)

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

2 participants