Skip to content

Instantly share code, notes, and snippets.

@rexxars
Created November 2, 2014 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexxars/73862ece23195a84513c to your computer and use it in GitHub Desktop.
Save rexxars/73862ece23195a84513c to your computer and use it in GitHub Desktop.
<?php
new AuthArrayAdapter([
// Shorthand/old style access (read+write for all endpoints)
'oldPubKey' => 'oldPrivKey',
'pubKey1' => [
'someRoPrivateKey' => ['images.get', 'image.get', 'metadata.get'],
'someRwPrivateKey' => ['images.post', 'image.put', 'metadata.post']
],
// But, how do we specify a user that can read other pubkeys images, or adds users?
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment