问题
I'm trying to integrate oAuth2 in my website. I'm using the library of bShaffer on GitHub: https://github.com/bshaffer/oauth2-server-php
I've seen some screencasts about how oAuth2 works and so on, so I know enough things. But what I don't really understand is: how do I pass the username/email or other data about the user? I mean: my website will be the identity provider and I need to authenticate the user to another website. Now, when the user logs in, how do I pass its username or something other? I don't find anything about how to pass data in the oAuth2 Server php documentation. Just found something about how do I pass the userID, but nothing more. Am I missing something?
Thanks.
来源:https://stackoverflow.com/questions/44437988/oauth2-php-server-library-how-to-integrate-it