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?
こんにちは!
YouTubeへのアップロードを試していますが、このJavaScriptエラーが発生しました。
Uncaught {error: 'idpiframe_initialization_failed', details: 'Cookies are not enabled in current environment.'}
しかし、私の知る限り、Cookieは有効になっています…
サードパーティ Cookie が無効になっているか確認していただけますか? アドレスバーにこの表示はありますか? 
よく気がつきました。Google はデフォルトでサードパーティ Cookie を無効にしていると思いますが、間違っているかもしれません…
別のエラーが発生しました。
POST https://www.googleapis.com/upload/youtube/v3/videos?part=snippet%2Cstatus&uploadType=resumable 401
Unauthorized
アクセス権は正しいはずですが:
Discourse インターフェイスから動画をアップロードするプロセスで、以下の手順を踏みました。
トークンは取得しましたか?まずGoogleで認証してトークンを取得する必要があります。それがないようです。
クライアントIDのことですか?
テーマコンポーネントの設定で設定しました。
編集:Vimeoのアップロードも機能しませんでした。
前回あなたのテーマコンポーネントを試したときは、YoutubeとVimeoの両方で問題なく動作していたので、奇妙です。 ![]()
エラーメッセージ:
POST https://api.vimeo.com/me/videos 401 (Unauthorized)
最近、このテーマコンポーネントを正常にインストールして使用した人はいますか?
はい、Vimeoで使用しています。![]()
私のスクリーンショットで何か問題にお気づきになりましたか?以前は機能していたこのテーマコンポーネントの動作方法を理解できなかったので、少しイライラしています。![]()
こんにちは。
YouTubeのバージョンは試しませんでしたが、VimeoではOPのビデオに従いました。
アクセストークン生成ページで「Authenticated (you)」を選択し、スコープで「Public (required), Private」および「Upload」を選択します。 (これが問題の原因かもしれません)
次に「Generate」をクリックし、キーをDiscourse設定の「vimeo api access token」にコピーします。
こんにちは。
YouTubeへのアップロードを実装しようとしています。提案された手順をすべて実行しましたが、認証画面で止まってしまい、まだ動作していません。
または、ファイルをコミュニティにアップロードするための代替プラグインはありますか?
「コミュニティにファイルをアップロードする」というのは、厳密には、設定の許可された拡張子を任意の拡張子に変更するだけで済みます。
ただし、最大添付ファイルサイズに制限されます。これは増やすことができますが、Discourseはファイルホスティングサービスを意図したものではなく、設定が正しくても非常に大きなファイルで問題が発生したという話をいくつか見かけました。
しかし、本当にお望みなのは、ユーザーがDiscourseに自分の動画を簡単に表示する方法だと思います。
私の知る限り、これ以外のプラグインやテーマコンポーネントはありません。もし何らかの理由で設定できない場合は、ユーザーは外部のDiscourse互換ソリューション(メディアがDiscourseの投稿でワンボックス表示できるという意味)に頼るしかありません。例えば、Youtube、Vimeo、またはその他の専門的なクラウドサービスにアップロードするなどです。
チャットでのアップロードは今後サポートされる可能性はありますか?
私の側からは提供していません。もし誰かがそのサポートを追加したいのであれば、PRで貢献していただければ幸いです。
@Canapin様
このYouTubeの問題は解決しましたか?
全く同じ問題が発生しています…
ありがとうございます!