Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How should I start with OAuth server at PHP

Tags:

php

oauth

Have found the following example of OAuth server http://oauth.googlecode.com/svn/code/php/OAuth_TestServer.php

But it is unclear for me 1. How I should generate certificates

  1. How I should specify access token/access token secret/request token/request token secret, should they stored in database? Should it regenerated for each request? What else I should store in database?

  2. Where should I implement the verification of Access token?

Please advice

like image 633
se_pavel Avatar asked Jul 24 '09 10:07

se_pavel


1 Answers

To Generate Certificates, you need to create a CSR (Certificate Signing Request)

If you have access to cPanel, then you can generate a CSR easily. If you don't then you will need to download some software to generate a CSR.

After you have your CSR, you can head over to CACert for a free certificate. However, be warned: not all modern browsers trust CACert, so you might get warnings. If you don't want this, you will have to pay for a certificate from a professional provider, like VeriSign.

like image 96
xaav Avatar answered Oct 11 '22 13:10

xaav