Doubts about OAuth2.0 's project?

< H1 > 1. Problem description < / H1 >
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:

clipboard.png

  • access_tokenuri:/access_token

clipboard.png

  • uri:/user

clipboard.png

  • 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)
< H1 > 2. Now my condition < / H1 >
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.

Jun.23,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9191e-136b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9191e-136b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?