I want to extend my website to support OAuth so that third party applications can access data and perform actions on behalf of the website user. How should I go about it?

Basically I would like to know how to go about generating access tokens and the database setup that should be done.

有帮助吗?

解决方案

First you should choose which authorization schema you will implement on your site. In your case it could be:

  1. Authorization Code Grant
  2. Implicit Grant

Then taking in account a programming language and framework you can make your choice.

In any case you'll have to configure some kind of routing for OAuth urls and redirects and a persistent storage.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top