|
|
|
Авторизация через VK
|
|||
|---|---|---|---|
|
#18+
Помогите плиз. Делаю авторизацию, тестируюсь у себя локально, сайт еще разрабатывается, платформа ASP.NET MVC4: Запрос авторизации: <a class="btn" href=" https://oauth.vk.com/authorize?client_id=3185154&scope=notify,offlineS& redirect_uri=localhost:1173/Home/Auth&response_type=code">Войти через VK</a> Далее в методе контроллера redirect для получения access_token: var uri = string.Format(@" https://oauth.vk.com/access_token?client_id={0}&client_secret={1}&code={2}& redirect_uri=localhost:1173/Home/Auth", "3185154", "xxxxxxxxxxxxxxxxxx", code); return Redirect(uri); В обоих случаях redirect_uri полностью идентичен. Получаю в ответ: {"error":"invalid_grant","error_description":"redirect_uri is invalid, please pass same redirect_uri, you used in authorize method."} Что я делаю не так? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.10.2012, 00:25 |
|
||
|
Авторизация через VK
|
|||
|---|---|---|---|
|
#18+
В приложении на стороне вконтакта URL должен быть настроен как http://localhost:1173/ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.10.2012, 17:12 |
|
||
|
|

start [/forum/topic.php?fid=16&msg=38009036&tid=1342075]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
181ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
| others: | 244ms |
| total: | 508ms |

| 0 / 0 |
