now we need to build a service interface that provides the user"s id and user name. The query interface has been written, and now it is required to be managed by oauth2.0. The specific timing diagram is as follows:
-
access_tokenuri:/access_token
-
uri:/user
- also have to make a login interface for him, but the client (ps: I just need to get the interface platform) detects that the user has not logged in and redirects (with redirect-uri) to the login interface and asks the user to enter the account password. Then I need to check whether the account password is correct in the background and return code to redirect-uri. Then code needs to be customized to the user"s id in the database table. (/ manual heartache)
I finished the database, and add, delete, change and check, and then consult a lot of blogs, and found that their oauth2.0 and my needs are very different, although I also according to those to achieve once (authorization code mode), these are simple exercises assigned to us by the teacher, headache for a long time, online oauth2.0 request parameters are not so concise, the feeling of this document requirements are custom, I do not know how to do.< H1 > 3. Demand < / H1 >
how to deal with token,code if you want to implement such functions. Is how to modify the oauth2.0 on the network, or directly write a few classes, the interface can be realized, I am now blocked here, but also please your advice.
< H1 > 4. Contact < / H1 >if the answer is not clear, please contact me:
QQ:1498603935
Wechat: wq1498603935
finally, thank you very much.