Youtube API NoLinkedYouTubeAccount Error - youtube-api

using of youube api getting this error
Error Domain=com.google.GDataServiceDomain Code=403 "The operation
couldn’t be completed. (com.google.GDataServiceDomain error 403.)"
UserInfo=0x7676020 {Error=NoLinkedYouTubeAccount,
error=NoLinkedYouTubeAccount}

You recieve this error since you are using Service account authentication.
The service account flow supports server-to-server interactions that do not access user information. However, the YouTube Data API does not support this flow. Since there is no way to link a Service Account to a YouTube account, attempts to authorize requests with this flow will generate a NoLinkedYouTubeAccount error.
https://developers.google.com/youtube/v3/guides/authentication
You may try to use another type of authentication, such as server-side or installed application, however user should allow to use his account.
If you want to create an app which will allow different users to add videos to your own channel, than you can try ClientLogin authentication protocol.
Look here for more info https://developers.google.com/youtube/2.0/developers_guide_protocol_clientlogin#ClientLogin_Authentication
This protocol is deprecated but I have not found any way to resolve problem.

Related

Microsoft OAuth2.0 admin consent API returns error AADSTS90027 and can't get token

I am providing an application that performs OAuth 2.0 authentication using Microsoft IDs, but the other day an error suddenly occurred and the authentication could not be performed, and the situation is still continuing.
It was working fine until then.
We are using the admin_consent API to get tokens, as shown in the following URL.
https://learn.microsoft.com/ja-jp/graph/auth-v2-service
Now, before going to the Microsoft login screen, we are redirected to a URL with parameters indicating an error.
The parameters look like the following:
?error=invalid_request&error_description=AADSTS90027%3a+We+are+unable+to+issue+tokens+from+this+API+version+on+the+MSA+tenant.+Please+contact+the+application+vendor+as+they+need+to+use+version+2.0+of+the+protocol+to+support+this.%0d%0aTrace+ID%3a+60c3dfca-739d-439a-94e3-05345df4ea00%0d%0aCorrelation+ID%3a+907818ee-d2f2-444e-acc8-745c102251fa%0d%0aTimestamp%3a+2021-04-26+05%3a33%3a02Z&admin_consent=True&state=80ffc4c9-e395-4d64-8b34-41531015a780#
We are using this endpoint URL:
https://login.microsoftonline.com/common/adminconsent
I don't see how this could be wrong.
I have searched for this error message but am having trouble finding an effective solution. Is there anything I can do to improve the situation?

Microsoft Graph API Beta - Get Chat returns 401 Unauthorized

I am testing Get Chat Microsoft Graph API (which is still in Beta) and it seems to work successfully when it is called from Graph Explorer (which uses an user token), instead when I call this API from Postman with an application token, I get 401 Unauthorized with an Unknown Error as response.
https://graph.microsoft.com/beta/users/<user-id>/chats/<conversation-id>
My App Registration on Azure has these permissions:
And the decoded application token contains:
"aud": "https://graph.microsoft.com",
"roles": ["User.Read.All", "Chat.Read.All" ]
The same token it works for the Get User API
https://graph.microsoft.com/beta/users/<user-id>
Basically, it seems to have problems only the GET Chat API when called with an application token, although the documentation says it is supported. Am I missing something in the App Registration configuration?
EDIT
As I have already explained in the comments, this question doesn't help me, since:
audit is correct
permissions are present in the token and are granted by the admin in the App registration
scope is correct
Should I check something else?
Have you seen this message on the (English) documentation page?
Before calling this API with application permissions, you must request access. For details, see Protected APIs in Microsoft Teams.
It seems like Microsoft has implemented an extra layer of security for apps accessing "Teams" endpoints.

Error: deleted_client while logging with Google

I am getting the below error while login with google through Keycloak.
401. That’s an error.
Error: deleted_client
The OAuth client was deleted.
Request Details That’s all we know.
The application you are using has a client id created via google developers console. The client id in question was deleted your going to have to create a new client id and recompile your application.
That is assuming this "keyCloak" is your own application if not then you should contact the developer of the application they have a problem

Google API: YouTube video uplaod error = 403

I'm getting following error for uploading the video to youtube,
YouTube-API-Demo[654:60b] Video Upload failed : Error
Domain=com.google.GTLJSONRPCErrorDomain Code=403 "The operation
couldn’t be completed. (Access Not Configured. The API is not enabled
for your project, or there is a per-IP or per-Referer restriction
configured on your API key and the request does not match these
restrictions. Please use the Google Developers Console to update your
configuration.)" UserInfo=0x16e922e0 {error=Access Not Configured. The
API is not enabled for your project, or there is a per-IP or
per-Referer restriction configured on your API key and the request
does not match these restrictions. Please use the Google Developers
Console to update your configuration.,
GTLStructuredError=GTLErrorObject 0x16daee10: {message:"Access Not
Configured. The API is not enabled for your project, or there is a
per-IP or per-Referer restriction configured on your API key and the
request does not match these restrictions. Please use the Google
Developers Console to update your configuration." code:403 data:[1]},
NSLocalizedFailureReason=(Access Not Configured. The API is not
enabled for your project, or there is a per-IP or per-Referer
restriction configured on your API key and the request does not match
these restrictions. Please use the Google Developers Console to update
your configuration.)}
Please help me in resolving the issue.
Have you enabled the Youtube Data API for the App that you are using?
https://console.developers.google.com/project
You see a list of projects there and you have to active the APIs per project.
Otherwise there might be IP restrictions. You can restrict your App Token to only allow access for specific IPS. The default is "allow all IPs". There is a "Access" Tab somewhere.

some errors when i try to use scribe java library for yahoo authentication

When I tried connecting to Yahoo via Oauth authentication using scribe java library, I get the error message "oauth_problem=consumer_key_rejected" I tried different sets of API keys but same error message is shown...How do I fix this?
Check with Yahoo for your application consumer key, otherwise you can ask to renew a new consumer key.

Resources