Commit graph

8 commits

Author SHA1 Message Date
redmatrix
3b859aa9ef Implement permission checking for OAuth clients using the xperm table. Currently 'all' permissions are applied to OAuth clients which gives them the same rights as the channel owner and full access to API functions as the channel owner. However, individual permissions can now be created. These mirror the permission names from the normal permission table (although it isn't required that they do so). Lack of an xp_perm entry for the specified permission and lack of an 'all' override indicates permission denied. 2015-05-17 18:14:50 -07:00
friendica
8eedc9d576 updated install doc 2015-02-20 13:18:44 -08:00
friendica
1a6973a670 cherry pick pull request #544 2014-07-24 19:07:04 -07:00
friendica
14a6a27213 limited progress in providing a POST option to shredder, back to auth signature mismatches again, likely a quoting issue 2014-06-19 21:52:49 -07:00
friendica
00904d4994 cleanup 2014-06-19 16:09:02 -07:00
friendica
c012c648e0 wherein I revive some of my 30+year old shell scripting skills so that we can process arbitrary api endpoints which generate arbitrary json and be able to crunch all of these on the command line. Getting the arbitrary query arguments into a form where they could be signed as part of the oauth packet was a challenge. (It still might be - I haven't tried querying any Chinese photo album names yet).
But you can now do something like
	for a in `util/shredder/shredder -c red/photos -q album=2013 | jshon -e photos -a -e src` ; do wget $a; done
and download all the photos in your 2013 album
2014-06-18 22:33:28 -07:00
friendica
ecbbd66e8f You'll need these to build jshon - warning these are typically blocked by .gitignore 2014-06-18 17:19:44 -07:00
friendica
dd042f4f09 Turns out Linux has a shred command in /usr/bin and its purpose is to over-write files so we don't want to invoke it accidentally. So as not to cause confusion and issues we will rename ours to "shredder". Aussies are of course allowed to alias this to "shredda". 2014-06-18 17:04:19 -07:00