Open happybeing opened 5 years ago
A little extra info, here's the code I'm using to authorise:
logApi('requesting auth of App...')
let authUri = safe.auth_app(appInfo.id, appInfo.name, appInfo.vendor)
logApi('...authUri obtained: ', authUri)
logApi("connecting to SAFE Network...")
safe.connect(appInfo.id, authUri)
logApi('...connected SUCCESS')
@theWebalyst you won't be able to mutate a FilesContainer using a second application, you can only do it with the application which created the FilesContainer, that's usually the case of those access denied errors. We still need to expose on APIs permissions for sharing content among apps
Using SB 15.1 I'm able to use the safe_files_xxx APIs to obtain the contents of files and folders, but after authorising the app I can't add a file. Testing with SB 15.2 is not possible as the site does not load at all (see https://github.com/maidsafe/safe_browser/issues/1061).
The above code is fine until the call to
files_container_add_from_raw()
which gives the following error:I wondered if I wasn't requesting the correct permissions but AFAIK there are no parameters for this currently and I'm seeing the same permission request as for
safe auth
in the authenticator UI:I'm not sure if this is a bug or if I'm doing something wrong.
Environment
Ubuntu 19.04