I'm trying to provide a way in my iOS app to migrate existing Datastore users to a new means of storing an SQLite database file on Dropbox via the new v2 API (SwiftyDropbox).
I'm currently trying to let them connect to Dropbox with the old Datastore API with:
let accountManager = DBAccountManager.init(appKey: "...", secret: "...")
DBAccountManager.setSharedManager(accountManager)
DBAccountManager.sharedManager().linkFromController(self)
I am then taken to the Dropbox app on my phone where I hit Allow and then return to my app and get this error:
Error Unknown: Unable to verify link request
Will I simultaneously be able to authenticate to the Datastore API and the new v2 API? If not, do you have some suggestions on how to access the user's data out of the datastore so I can put it in my own SQLite file?
Related
I am creating an application using Flutter for frontend and Spring boot for backend. I want to access profile pictures of users stored as Azure blob using the URL of the image obtained from the server. This will enable the application to load the image as a network image.
But when I try to use the URL, following error is generated
<Error>
<Code>PublicAccessNotPermitted</Code>
<Message>Public access is not permitted on this storage account. RequestId:821d181e-601e-0059-639d-39d3fd000000 Time:2023-02-05T20:06:23.0221204Z</Message>
</Error>
The problem is that the Springboot application has access to the storage account using SAS token, but the flutter application will have no access.
Is there a way to allow the flutter application to access the azure storage for the blobs?
I am using MongoDB Realm for authentication in my Rest API writen in node js.
When I do the deployment that Realm authorization token getting expired for all the users. My assumption is MongoDb Realm is creating temp files inside the application directory and using that for authorization. Users are getting logged out because of this files are getting deleted during the deployment.
If anyone has some idea please help me out
Are this temporary files needed?
I am trying to create a signed URL for a private object stored in cloud storage.
The storage client is being created using a service account that has the Storage Admin role:
storage_client = storage.Client.from_service_account_json('service.json')
bucket = storage_client.bucket(bucket_name)
blob = bucket.blob(blob_name)
url = blob.generate_signed_url(
version="v4",
# This URL is valid for 15 minutes
expiration=datetime.timedelta(minutes=15),
# Allow GET requests using this URL.
method="GET"
)
This generates a URL that when accessed via a browser gives this error:
<Error>
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
<Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object.</Details>
</Error>
What am I missing here? The service account has no problem interacting with the bucket or blob normally - I can download it/etc. It's just the Signed URL that doesn't work. I can make the object public and then download it - but that defeats the purpose of being able to generate a signed URL.
All of the other answers I've found seem to focus on issues using application default credentials or are very old examples from the v2 API.
Clearly there's something about how I'm using the service account - do I need to explicitly give it permissions on that particular object? Is the Storage Admin role not enough in this context?
Going crazy with this. Please help!
I had a working App Maker application which uses the Directory API and the default Cloud SQL instance that gets created for the App Maker.
Before it was working fine and I was able to retrieve data from the Admin Console and insert them into the Cloud SQL database. Now it stopped working and when I check logs, I see the following:
Exception: Authorization Failed. More information: Unable to fetch
tokens for CloudSql connection:
I have not got any changes to the code and I did not modify anything. I only created a new deployment and I did change the product name in the OAuth Consent screen in the app's project properties to make it more use friendly...
I don't know what parts of the code to share since I did not change/type any new code and nothing in the error above points to anything specific about any part in the code...
Thanks a lot for any feedback and help on this!
On Bluemix, I created a Java application using Liberty for Java and the Object Storage Service. I then bound the Java Application and Object Storage Device. I uploaded the images into the container which I created in the Object Storage service. Now I want to access the uploaded images publicly, such as opening the images in a browser directly. I created the URL like the IBM Bluemix documentation said. After I access the URL in browser it shows the following error:
401 Unauthorized
Unauthorized
This server could not verify that you are authorized to access the document you requested.
My sample URL
Is it possible to make the URL public?
You can create a temporary public URL using the swift command line.
First you need to set a key and they create the temporary url. For example:
swift post -m "Temp-URL-Key:yourkey"
swift tempurl GET 3000 /v1/AUTH_90e12a182adf4a32bbd5e34645380244/offermsgs-cateimgs/books.jpg yourkey
The output of the command above will be your temporary public URL and in the example below it will be valid for 3000 seconds.
You can modify Object Storage ACL as well to make all files read only as suggested in the following post:
Public URLs For Objects In Bluemix Object Storage Service