Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpSmug should provide a method that returns an OAuth signed URL for GET requests #16

Closed
lildude opened this issue Feb 20, 2013 · 0 comments

Comments

@lildude
Copy link
Owner

lildude commented Feb 20, 2013

Idea from David Parry @ Smugmug...

I took the liberty of changing one of your albums :)

I turned externals off on this gallery… [redacted]

So requesting any of those image URLs from another web server should fail without OAuth.

The idea I had to make it the most flexible was to have a function like signResource($url), > where you pass the image URL that you want to sign and the function returns the $url with all the OAuth parameters. You can then pass that off to curl, wget or embed it in an img tag.

As I understand this, this is essentially creating a method that returns a string for GET requests with all of the OAuth params included... like Appendix A.5.3 at http://oauth.net/core/1.0/

lildude added a commit that referenced this issue Mar 2, 2013
* Added ability to sign an image URL with OAuth authentication parameters to allow embedding of "non-external" images within external sites.  Fixes Ticket #16.
* Added example-external-links.php example to demonstrate the above.
* Switched to using Markdown for the README file.
* Misc other little coding changes and improvements.
@lildude lildude closed this as completed Mar 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant