Answer the question
In order to leave comments, you need to log in
oAuth stopped working through Yandex. What could be the problem?
On my site, in addition to the rest, there is authorization through Yandex. It worked properly for a couple of years, and a week and a half or two ago it suddenly stopped working. As it turned out, the problem is that when accessing the address https://api-yaru.yandex.ru/me/
, the code 403 is returned. Maybe someone is in the know, something has changed with them?
Just in case, I will explain exactly how I work with the API:
1. I send the user to
https://oauth.yandex.ru/authorize?response_type=code&client_id=MY_CLIENT_ID_HERE&display=popup
{
["token_type"]=>
string(6) "bearer"
["access_token"]=>
string(32) "12345678901234567890123456789012"
["expires_in"]=>
int(31536000)
}
curl_setopt($ch, CURLOPT_HTTPHEADER ,array(
"Authorization: OAuth ".$token,
"Content-Type: application/x-yaru+xml; type=person"
));
Answer the question
In order to leave comments, you need to log in
It turned out that you need to use a different address:
https://login.yandex.ru/info?[format=json | xml][& oauth_token=<OAuth-токен>]
. Due to the closure of the ya.ru service, the former does not work. Description is here .
through uLogin everything is ok. Check the authorization of your site in the webmaster
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question