How to regenerate expired Dropbox access token of customer (end user)? - dropbox-api

We have few customers (end users) for whom we have recently started observing expired Dropbox access token as follows:
Error DropboxApi::Errors::HttpError : HTTP 401: {"error_summary": "expired_access_token/..", "error": {".tag": "expired_access_token"}}
All these customers have already provided necessary permissions to our app & currently have their Dropbox account connected to our app. But due to above error I'm unable to fetch author or video details associated with customer's Dropbox account.
A sample expired access token:
"sl.BGkoetSlQMa7KMP-LmYIsSuVGmfY5QoD7ZGtj0wM_IZiWCD1rXS7j0ylaMYQlmvM7xXQg4WGBIFc-tdu9Q9jfZ09WxXpvSIqYWF_G1sCmDJJ_ELrtvZw27iUrUtmoLsdKcDDdc1v"
How can I regenerate such expired access tokens of customers?

Related

flutter User.Read azure active directory "Insufficient privileges to complete the operation"

I am trying to get the data of a signed in user using Microsoft graph API. I work with the "aad_oauth" package in flutter. When signing in, an access token is provided. This access token is then used in a http.get request.
However every time I try to get the data, the following error appears.
"{"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation:"
I also added a permission at the ad admin center.
That's how I get the access token
This is my http request
I tried to reproduce the same in my environment and got the below results:
I created an Azure AD application and added user.read permission:
Now I generated access token via Postman with below parameters:
GET https://login.microsoftonline.com/TenantID/oauth2/v2.0/token
grant_type:authorization_code
client_id:1b323717-80d8-4172-b141-XXXXXX
client_secret:GTT8Q~PErY3nTbj9LO8Nkkm2ai.XXXXXXX
scope:user.read
code:code
redirect_uri: redirect_uri
To get the details of the signed-in user, I ran the below query by including bearer token:
GET https://graph.microsoft.com/v1.0/me/

How can I get a long term refresh token for google search ads 360 api that doesn't expire?

I have created an app registration in google cloud and have managed to authenticate when using the test scope by changing the redirect url to localhost:8080 and acquiring an access token and a refresh token. The problem is that the refresh token expires when using the test scope, so I switched to the production scope, and now I get an error no matter what url I list as an authorized domain.
The only solution I can find so far is to switch back to the test environment (Google oAuth 2.0 API Authentication Error: Error 400 - redirect_uri_mismatch (does not comply with policy) DJANGO APP), but that doesn't work for me for the reasons above.
Does anyone know how to get a permanent refresh token in production scope for sa 360?
Any help would be much appreciated.

Has Uber products API stopped supporting Server Token type?

Earlier we're using server token to get uber products which are not working anymore, it keeps on returning 401 Unauthorized exceptions. Is Server Token authentication no more valid? Does it support only access token?

Delete Github OAuth access token when user logged out of GitHub

I'm building a website which uses GitHub OAuth to authorise users. I'm successfully authorising users and able to get access_token from GitHub to talk to their API. When user logs out of my app I invalidate the session and delete the authorisation, but when user stays active in my app and logs out of GitHub, the access_token is still active article.
I'm looking for a way to logout / re-authorise users when they have logged out of GitHub.

GSuite : Client is unauthorized to retrieve access tokens using this method

Hi I'm trying to develop an for GSuite admin which enables to migrate their google drive data to another cloud service. But in the process of authentication i'm getting the below error.
{
"error": "unauthorized_client",
"error_description": "Client is unauthorized to retrieve access tokens using this method."
}
Below are the api's that are enabled in developer console.
1. Admin SDK
2. Contacts API
3. G Mail API
4. Calendar API
5. Drive API
Please guide me if done anything wrong in creating an app.
The main thing what i missed here is Authorizing my service account client ID with the GSUITE admin.
And I have been trying to generate access_token for the expired domain of mine.
After clearing all these i have to success in generating and getting user data.
This solution worked for me. I hope it works for you tooo....
Thank you community.