Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.