I’m trying to download a file in which i’ve denied access to Read for NotAuthenticatedUser. The documentation says that to download the file as an AuthenticatedUser you must supply the user-token.
After logging in I have received the user-token successfully using: UserTokenStorageFactory.instance().getStorage().get()
And I can download files that haven’t been restricted access to by using the method described in this blog post:
How can I modify the method used in the blog post in order to supply the User Token?