57uff3r / nodejs-vksdk

NodeJS SDK for vk.com
201 stars 82 forks source link

Not possible any more to get a token for the given user #12

Open vitche opened 9 years ago

vitche commented 9 years ago

Code for getting acccess token should include the following:

        // Построение ссылки
        StringBuilder builder = new StringBuilder("https://oauth.vk.com/token?grant_type=password&scope=notify,friends,photos,audio,video,docs,messages,notifications,offline,wall");
        builder.Append("&client_id=");
        builder.Append(applicationIdentifier);
        builder.Append("&client_secret=");
        builder.Append(applicationSecret);
        builder.Append("&username=");
        builder.Append(logOn);
        builder.Append("&password=");
        builder.Append(password);
        if (!string.IsNullOrEmpty(idCaptcha) && !string.IsNullOrEmpty(strCaptcha))
        {
            builder.Append("&captcha_sid=");
            builder.Append(idCaptcha);
            builder.Append("&captcha_key=");
            builder.Append(strCaptcha);
        }
57uff3r commented 9 years ago

Looks reasonable. Before I removed this code because users almost don't use this feature.

Will put back this code in few days.