简体   繁体   中英

Make my own api with oauth

Hy ,

I want to make my own api (api.mysite.com).
But i want to secure it with OAuth.
I couldn`t find a good tutorial on how to implement it.

I would like something like this:

On api.mysite.com to be the files for oauth :

-where user sends the signed request and i return him the needed data (first send him something like 1 or 0).

And on localhost/testapi to be the file index.php:
-where user signs the request and sends it to api.mysite.com where it is processed and returns the result if it`s all ok

Where could i find the best tutorial that explains what to put on api.mysite.com , what to put in localhost/testapi and the sql structure?

Thank you and sorry for my dumbness

Some useful links:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM