alexpods / meteor-accounts-vk

Login OAuth service for VKontakte accounts (https://vk.com)
MIT License
72 stars 21 forks source link

Шифруются ли передаваемые данные? #10

Open Lesp1ker opened 9 years ago

Lesp1ker commented 9 years ago

Пишу свою провайдерную часть для авторизации, и вопрос:

  1. после открытия окна авторизации: https://oauth.vk.com/authorize, code в каком формате возвращается, шифруется как то (ведь state не просто так передается)?(как я понял, передается просто так) но oauth ругается (хоть и работает): Unable to parse state from OAuth query: ,l}, он как будто зашифрованный state ждет...
  2. м.б. где то есть исходники провайдерной части от вк\гитхаба\гугла и.т.д., не встречал?
  3. на стороне приложения: редиректы от провайдера обрабатываются внутри пакета oauth я так понимаю (явно не нужно указывать обработку)?
AlexanderBelokon commented 7 years ago

The "Unable to parse state" error is a frequent one across all loginWith providers: https://github.com/Multiply/meteor-accounts-steam/issues/2 https://github.com/PoBuchi/meteor-accounts-linkedin/issues/4

It is usually fixed with a change like that: https://github.com/nrser/meteor-accounts-soundcloud/commit/13a66486b95e2fffa7928f12a65173272c16b1f1#diff-758a43140365cae81faf4e0857c85adcR33

It seems that this change was already implemented in https://github.com/alexpods/meteor-accounts-vk/commit/7e5ffe0124c553bccc8da1d3172304fb966a4742

Are you using the latest version? Do you still experience this issue?