GithubHelp home page GithubHelp logo

oauth2-vkontakte's Issues

getEmail()

Hi,
possibly add User.php getEmail()?

OAuth authorization cannot be used from native VK applications

Hello there,
I have a big problem when I try to use your script.
It always redirects me to an oauth.vk.com site with the following content:
{"error":"invalid_request","error_description":"OAuth authorization cannot be used from native VK applications"}
I don't know what I did wrong and I didn't find usable results at search.
I created the app at vk.com/apps and used the tokens from the app settings page in the script.

Porting of the provider to phpleague oauth2-client 2.2

Sorry to bother you with an issue, but i didn't realize how to do a pull-request (my fault...).
This evening i've managed to modify your project to support the latest phleague oauth2-client (2.x): the code is available at https://github.com/rabser/oauth2-vkontakte.git, branch oauth-client-2x
There are not many changes, but some significant rearrange; i've tested this code with the latest vk API and i was able to get the email, so even the scopes are running fine.
I would need to use a v2.0 release of your provider inside the Moodle LMS plugin that iḿ rewriting to support the latest phpleague library.

Hope you can consider this.
Sincerely yours,
sergio

league/oauth2-client ^2.0 support

Could you please implement this version, coz it doesn't work with league/oauth2-google 2.2.0 that already requires league/oauth2-client": "^2.0"

PHP 7.4

Hello. Does the Vkontakte OAuth2 client provider support PHP 7.4 version?

Doesn't work autoloading

  1. Doesn't work autoloading
  2. Fatal error: Class J4k\OAuth2\Client\Provider\Vkontakte contains 6 abstract methods and must therefore be declared abstract or implement the remaining methods (League\OAuth2\Client\Provider\AbstractProvider::getBaseAuthorizationUrl, League\OAuth2\Client\Provider\AbstractProvider::getBaseAccessTokenUrl, League\OAuth2\Client\Provider\AbstractProvider::getResourceOwnerDetailsUrl, ...)

Attempted to call an undefined method named "getEmail" of class "J4k\OAuth2\Client\Provider\User

Hi there,

I have an issue when using your client in a bundle knpuniversity/oauth2-client-bundle

I would like to know how can I retrieve user's email because my code doesn't work and I am getting an error "Attempted to call an undefined method named "getEmail" of class J4k\OAuth2\Client\Provider\User"

Below is a snippet of code which I am using:
$client = $this->get('oauth2.registry')
->getClient('vkontakte');
$user= $client->fetchUser();
$user->getEmail();

From error message I see that method getEmail() is not exists.

Can you point me which method should I use or what I am doing wrong?

Only variables should be passed by reference

I try to get User from token, that another client give to my api.
$response = $this->oauth->usersGet([],$token,['user_ids' => []]);
$response = array_pop($response);

But get:
Notice: Only variables should be passed by reference in
/srv/avito/vendor/j4k/oauth2-vkontakte/src/Vkontakte.php on line
143
And after that user info. May be I do smth wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.