Google keep blocking our app login - authentication

I'm developing a contest platform using Youtube.
So each contestant will upload a video thru our website. The video will be uploaded to our specific channel.
But, I kept receive warn email, google block login attempt from our contestant. The email says something that an unsecure app tryin to login.
And our tester (contestant) always failed to upload their video.
Please help.

There are a few ways you can approach this:
You can share a Youtube Channel. To do this, you need to have all the users as a manager of the G+ page the channel is connected to.
You can give all the users your account credentials for them to upload to your channel
your channel.
You can have the users upload the video to your servers and then you upload each video on the Channel's account yourself.
You can have them upload it to their own Youtube Channel and they can just pass you the URL to the video.
Personally, I think the last option is best.
For your login issue, if you are having users use the account credentials to login and upload themselves, you may be getting that warning because too many users from too many different locations are trying to access the same one account.

Related

youtubeSignupRequired when Uploading Video via Youtube Data API

i'm trying to upload a video via Youtube Data API, but I always get a youtubeSignupRequired error.
I found on https://developers.google.com/youtube/v3/docs/errors?hl=en that youtubeSignupRequired, may mean that the user has a Google Account but does not have a YouTube channel.
That's my case, I've no YouTube channel for this Google Account, but I'm am admin of another Youtube channel (orange icon) which i can even see (under switch account) when logged in on youtube.com
I've created an empty channel now ("Testkanal"), but still don't see correct channel as an option on Oauth2 consent screen
Any ideas how it fix that, so I can uload to this channel?
Thx a lot!
Finally worked using the owner's account.

How to tie an account from a backend server to a google assistant user

I have a web application setup to handle webhook requests from an Actions-on-Google/Dialogflow application using the Google Assistant. Users don't need to sign-in to a google account in order to use my web application and I'd prefer to keep it that way, so that users can sign in with any email address.
I also want my users to be able to interact with my application using the Google Assistant, and be able to access personal/contextual data via the assistant (i.e. when a speaker says, "what's on my shopping list", the web app needs to be able to know what my means).
Currently, I have this working by using my web app to issue a unique short code to my user (in the web app UI) and then with an intent on the Assistant where the speaker says "My code is 1-2-3-4" and then my web app can identify the user from then on (by saving the userId from the webhook request to whatever user got the short code 1234 and then using that userId to lookup the user on each subsequent request.)
My question is, is there a better way to do this? Ideally, in my web app, I'd like to have something like an "Authorize Google Assistant" button, which would then link the user's google account to their web-app account, so that the conversation on the Assistant is seamless.
Has anyone done this before?
Thanks
This is the perfect use case for Account Linking with the Google Assistant.
From your users' perspective, they will start to use your Action. If they're doing so through a speaker and they haven't linked the account yet, they'll be directed to a mobile device to do so. On a mobile device, they'll be redirected to a page on your website where they will been to authenticate themselves and authorize your server to let them in through the Assistant. Once they have done so, they won't need to log in again, the accounts will be linked, and they'll be able to use the voice Action without further obstruction.
From your perspective as a developer, you'll need to setup an OAuth2 server (I suggest the code flow). That login process I mentioned is the first step in the OAuth dance, and will end up with you issuing a code to Google. They will then exchange this code for an Auth Token (with a limited lifetime) and a Refresh Token (which does not expire). They will periodically use the Refresh Token to get new, valid, Auth Tokens for this user. When the user issues a voice command, the Auth Token will be passed as a field in the JSON to your fulfillment server, and you can use this to verify who the user is and that they are authorized to use your service.

Is it possible to upload files from an without asking the user to sign in?

I have a Dropbox account.
I would like to use it, so that an android app can upload photos to my Dropbox account, without the user of the app having to know my credentials to log in.
Is that possible ?
Is there a programmatic way, that I can get my app to do this, without the user of the app having to know my dropbox password ?
EDIT: I don't understand why this is down voted. If there are multiple posts asking how to do this, by different users, and it is with regard to finding a programmatic why to log in, then it is relevant and shouldn't be down voted.
Refer to this thread on dropbox forums which says that they did not include the file requests feature in their apis so its not possible through apis.
Since the native api does not support this feature you can redirect your user from your app to dropbox app to create file requests.

Deleting Youtube video in Google App Script

I have a bunch of Google accounts each with Youtube videos. What I want to achieve is a Google App Script which can read user credentials info from a google spreadsheet, get him login using his credentials, access the youtube video url which we have and delete it.
Is this possible? i.e. Getting login into Gmail using Google App Script. If so then please provide a reference.
Thanks.
YouTube.Videos.remove('Your_Video_Id_Here');
Did you look at the reference material?
You can get the email of the active user with:
Session.getActiveUser().getEmail();
but you shouldn't need that if the person calls the function themselves via a menu/trigger/etc

Link app to dropbox

I have an app with a dropbox link capability. There is a button called link. Then a safari page is opened with dropbox, and you can link the app to your account. But since I want all the users to log in with my account, I didn't want to dysplay my email and passward on the app, but by preesing link, automatically the app is linked with my account, withought showing the passward, amd withought opening the dropbox link in safari. How can I do this?
Very bad idea. Users should use their own Dropbox account, otherwise you would possibly violate Dropbox's terms of service (you're not allowed to share your credentials) and, perhaps more importantly, any user would be able to delete or corrupt all other users' data.
The only way you could make your own Dropbox account accessible in the app, other than including your email address and password, would be to include an authorized OAuth token which could easily be extracted and abused by anyone who downloads your app.