prawn-cake / vk-requests

vk.com requests for humans. API library for vk.com
MIT License
158 stars 22 forks source link

How can I use client_secret for authorization? #37

Closed proninyaroslav closed 5 years ago

proninyaroslav commented 5 years ago

Hi. I want to use direct authorization (maybe Client Credentials Flow) for my application, that is, use the client_secret and application ID for authorization. How can I transfer the secret key by vk_requests? Or vk_reuqests doesn't support this type of authorization?

prawn-cake commented 5 years ago

Hi @proninyaroslav vk-requests implements 2 types of authorization:

  1. Oauth authorization code flow
  2. Using service token. (how to use)

Not sure what you mean by client credentials flow

proninyaroslav commented 5 years ago

About this https://vk.com/dev/auth_direct

prawn-cake commented 5 years ago

Hm, no, it's not supported unfortunately. However looking at the call flow, it looks very similar to what it does for the current methods. So I guess it's shouldn't be a big deal to implement it.

proninyaroslav commented 5 years ago

Excellent. Do you need help in implementing this feature?

prawn-cake commented 5 years ago

I'd actually appreciate any help, because recently don't have much time for the new features.

proninyaroslav commented 5 years ago

I sent a patch that adds this feature.

prawn-cake commented 5 years ago

The feature is available in v1.2.0.