Skip to content

Ошибка авторизации при попытке логина через установленное приложение ОК #51

@tresspin

Description

@tresspin

Добрый день!
Делаем авторизацию через Одноклассники для iOS. Логин через webview работает нормально, но при попытке пройти авторизацию через установленное приложение одноклассников, приходит ошибка токена (логи ниже). Подскажите, с чем это может быть связано и как это исправить?

Requesting access token by code
Odnoklassniki.IOSOdnoklassniki:SSOAuthSuccessIOS(String)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

OUT -> https://api.ok.ru/oauth/token.do?grant_type=author...,APP_INVITE,PHOTO_CONTENT,LONG_ACCESS_TOKEN&redirect_uri=ok1246217472%3a%2f%2fauthorize&client_id=1246217472&client_secret=757AC039E85F16DD59DBE0A2
Odnoklassniki.HTTP.Request:Send(Action`1)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

IN www <- {"access_token":"tkn1kd5lIw5FJSm3bzDt3eSh3hhTW2EXAXZZBbDxuBYe6scajng8GU5xgLPZbh9FlW3F3","token_type":"session","expires_in":"2592000"}
Odnoklassniki.HTTP.d__0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

Got response from tokenByCode: {"access_token":"tkn1kd5lIw5FJSm3bzDt3eSh3hhTW2EXAXZZBbDxuBYe6scajng8GU5xgLPZbh9FlW3F3","token_type":"session","expires_in":"2592000"}
Odnoklassniki.IOSOdnoklassniki:m__18(Request)
Odnoklassniki.HTTP.d__0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

Bad response: access_token or refresh_token is not present
Odnoklassniki.IOSOdnoklassniki:m__18(Request)
Odnoklassniki.HTTP.d__0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions