enjoyzhao2 / oauth2-php

Automatically exported from code.google.com/p/oauth2-php
MIT License
0 stars 0 forks source link

Some bug fix and code clean up #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bug fix:
  * Change "redirect_uri" filtering from FILTER_VALIDATE_URL to FILTER_SANITIZE_URL
    * I am using a domain with http://example-domain.com but the "-" is not allow and being filtered. Seems FILTER_SANITIZE_URL may be more suitable?
  * Update get_access_token() as issue 5.

Table column rename:
  * clients.pw => clients.client_secret
  * tokens.id => tokens.oauth_token
  * auth_codes.id => auth_codes.code
  * Update function implementation as above.

Code clean up:
  * Clean up dummy space from the end of line.
  * Replace "\t" as "  ".

Original issue reported on code.google.com by hswong3i@gmail.com on 30 Oct 2010 at 5:00

Attachments:

GoogleCodeExporter commented 9 years ago
I have setup a test case and able to test with both addclient.php, 
authorize.php, protected_resource.php and token.php. Hope this simple 
step-by-step guide can help the others: 
http://edin.no-ip.com/blog/hswong3i/oauth2-php-step-step-setup-and-testing

Original comment by hswong3i@gmail.com on 1 Nov 2010 at 12:14

GoogleCodeExporter commented 9 years ago
Refer to 
http://code.google.com/p/oauth2-php/source/detail?r=d4e371c900e8fa8f0d59c798ca47
ecca5f579db6, this is now get fixed within latest dev.

Original comment by hswon...@pantarei-design.com on 14 Dec 2010 at 4:46

GoogleCodeExporter commented 9 years ago
hi, the link for step-by-step example doesn't work, it's possible to restore? 
Thanks.

Original comment by claudio....@gmail.com on 31 May 2011 at 3:46