I’m on this step
It’s asking me what scopes to select for OAuth. Out of the 34 available, which ones need to be selected?
Screenshot of the Update selected scopes screen
I’m on this step
It’s asking me what scopes to select for OAuth. Out of the 34 available, which ones need to be selected?
Screenshot of the Update selected scopes screen
You should only need upload related permissions. These are the only ones required for the plugin, you can add anything you want though better not to unless you really need them.
Thanks @ti0 !
Google is now asking us to do the following
Answer: How will the scopes be used? Explain to Google why you need these scopes, how you will use them, and why more limited scopes aren’t sufficient.
Demo video: how will the scopes will be used? A YouTube video link is required when selecting sensitive or restricted scopes. Your YouTube video should demonstrate the OAuth grant process by users and explain, in detail, how you’ll use sensitive and restricted scopes within the app’s functionality for each OAuth client belonging to the project. Learn more The video should clearly show the app’s details such as the app name, OAuth client ID, and so on.
Could we create a template answer that is then added to this documentation?
I’ll try my best with #1 and definitely need help with #2.
What do you think?
This sounds a bit dangerous because you don’t actually need to be able to view their account. The permissions give the app the ability to list their existing videos and add new ones.
I think just mentioning the first line is sufficient, and additionally you can put:
The permissions will give users the ability to upload and embed videos directly within our private instance of the open source forum software called Discourse (htttps://discourse.org). The app uses plugins to enable different functionality, the open source plugin for uploading videos is listed here: Video Upload to YouTube and Vimeo using Theme Component
I think this should be sufficient for #1.
For #2 you can make a quick demo of the upload process or use this one :
The language and video link you provided worked well, @ti0, thank you!
Here’s the next message I got from the Google Cloud Trust & Safety Team regarding consent.
We reviewed your project and found that your privacy policy Privacy - Youth Power Hub doesn’t meet our requirements for the Google API Service: User Data Policy. If you want to continue with the verification process, please make sure the privacy policy linked to your project follows these requirements:
Privacy Policy Requirements
- The URL in your project points to a privacy policy on a publicly accessible domain.
- The privacy policy is hosted and accessible in the domain of your website.
- The privacy policy is accessible from the app’s home page.
- Users can view the privacy policy.
- The privacy policy clearly describes the way your application accesses, uses, stores, or shares Google user data.
- The privacy policy is linked to the OAuth Consent Screen on the Google API Console.
- You only use Google user data in the ways described in your published privacy policy.
Limited Use Requirements
If your app uses restricted scopes, we’ll check that your privacy policy follows our Limited Use requirements.
You can find more information in the OAuth Application Verification FAQ.
Is there recommended language for the privacy policy?
Ciao!
Sto provando a caricare un video su Youtube, ma ho ricevuto questo errore javascript:
Uncaught {error: 'idpiframe_initialization_failed', details: 'Cookies are not enabled in current environment.'}
Ma per quanto ne so, i cookie sono abilitati…
Puoi verificare se i cookie di terze parti sono stati disabilitati? Hai questo nella barra degli indirizzi? 
Ottima osservazione. Credo che Google disattivi i cookie di terze parti per impostazione predefinita, ma potrei sbagliarmi…
Ora ho un altro errore:
POST https://www.googleapis.com/upload/youtube/v3/videos?part=snippet%2Cstatus&uploadType=resumable 401
Unauthorized
Gli accessi sono corretti, però:
Ho seguito questi passaggi nel processo di caricamento del video tramite l’interfaccia di Discourse:
Hai ottenuto il token? Devi prima autenticarti con Google e ottenere un token, sembra che tu non ce l’abbia.
Intendevi l’ID client?
L’ho impostato nelle impostazioni del componente del tema:
Modifica: non sono riuscito a far funzionare nemmeno il caricamento di Vimeo.
È strano perché non ho avuto problemi né con Youtube né con Vimeo l’ultima volta che ho provato il tuo componente del tema. ![]()
Messaggio di errore:
POST https://api.vimeo.com/me/videos 401 (Unauthorized)
Qualcuno ha installato e utilizzato con successo questo componente del tema di recente?
Sì, lo uso con Vimeo. ![]()
Per caso, hai notato qualche problema nei miei screenshot? Sono un po’ frustrato perché non riesco a capire come far funzionare questo componente del tema, cosa che prima riuscivo a fare. ![]()
Ciao,
Non ho provato a configurare la versione di YouTube ma con Vimeo ho seguito il video dell’OP.
Seleziona (penso che questo possa essere il tuo problema) nella pagina di generazione di un token di accesso l’opzione Autenticato (tu) e in Scopes seleziona Pubblico (richiesto), Privato e Caricamento
quindi fai clic su Genera e copia la chiave in vimeo api access token nelle impostazioni di Discourse.
Ciao,
Sto cercando di implementare l’upload su YouTube. Tutti i processi che ho seguito come suggerito non funzionano ancora e si bloccano mostrando solo l’autenticazione.
Oppure esiste un plugin alternativo per caricare qualsiasi file nella community?
“per caricare qualsiasi file nella community”, stricto sensu, devi solo cambiare l’impostazione estensioni autorizzate in qualsiasi estensione.
Ma sarai limitato dalla dimensione massima dell’allegato, che puoi aumentare, anche se Discourse non è pensato per essere un servizio di hosting di file, e ho visto persone avere problemi con file molto grandi anche se le impostazioni erano corrette.
Ma suppongo che ciò che desideri veramente sia un modo semplice per i tuoi utenti di visualizzare i propri video in Discourse.
Per quanto ne so, non esiste un plugin o un componente tematico diverso da questo, e se non riesci a configurarlo per qualsiasi motivo, i tuoi utenti potranno fare affidamento solo su soluzioni esterne compatibili con Discourse (nel senso in cui i media possono essere visualizzati in un post di Discourse), come il caricamento su Youtube, Vimeo o qualsiasi altro servizio specializzato o cloud.
C’è la possibilità che questo supporterà mai l’upload in chat?
Non da parte mia, se qualcuno vuole aggiungere quel supporto è il benvenuto a contribuire con una PR.
Ciao @Canapin
Hai risolto questo problema con Youtube?
Ho esattamente lo stesso problema…
Grazie!