A
A
Anton Natarov2016-06-02 11:44:13
Yii
Anton Natarov, 2016-06-02 11:44:13

Yii1 Nodhe/EOAuth authorization via Yandex social network, how to set redirect_uri?

I use yii1 and an application for authorization through social networks from Nodge.
All social networks are set up normally and work, but for some reason I can’t configure Yandex using the OAuth protocol.
Gives the error "400 redirect_uri does not match the Callback URL specified when registering the application". But my callback is empty, I didn’t set any standards in all applications.
the request itself goes like this

https://oauth.yandex.ru/authorize?client_id=[Тут код приложения]&redirect_uri=http%3A%2F%2Fsite.loc%2Fsite%2FLoginAjax%3Fservice%3Dya&scope=&response_type=code&display=popup

//по сути редирект такой вид имеет
http://site.loc/site/LoginAjax/service=ya

To other social network request is the same and ok. I can’t understand what this redirect is not correct or how to specify Callback then? I do not need to redirect the user anywhere after authorization by and large.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question