U
U
un1t2015-02-06 14:28:23
Django
un1t, 2015-02-06 14:28:23

Python-social-auth and Odnoklassniki - "Incorrect client_id parameter specified." Why does not it work?

I installed python-social-auth, set up authorization for Google, Yandex, Twitter and VKontakte without any problems.
For Odnoklassniki, he swears:

Invalid client_id parameter specified.

The settings look something like this:
SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_KEY = 'CBAKNK...'
SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_SECRET = 'B36A06...'
SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_PUBLIC_NAME = 'some-test'

In the last parameter SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_PUBLIC_NAME I'm not sure what to specify.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
un1t, 2015-02-06
@un1t

It turned out to be in the settings, in KEY it was necessary to specify the application ID, and in PUBLIC_NAME - the public key.

SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_KEY = '123.'
SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_SECRET = 'B36A06...'
SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_PUBLIC_NAME = 'CBAKNK..'

Here is such a mess with naming.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question