mitodl / ocw-studio

Open Source Courseware authoring tool
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Youtube API configuration for OCW Studio production #486

Closed mbertrand closed 2 years ago

mbertrand commented 3 years ago

Summary

YT_PROJECT_ID YT_CLIENT_ID YT_CLIENT_SECRET YT_ACCESS_TOKEN YT_REFRESH_TOKEN

Related to #480, #484

Applicable Environments

shaidar commented 3 years ago

This is now applied to CI/RC Heroku apps

mbertrand commented 2 years ago

This will still need to be done for production when ready to go live.

It should be possible to use the same oauth app as for RC (same values for YT_PROJECT_ID, YT_CLIENT_ID, and YT_CLIENT_SECRET). Run python manage.py youtube_tokens, copy the resulting URL in a browser while logged in under the appropriate account, and select the 'MIT OpenCourseWare" channel when given a list of account options:

screen_shot_2021-10-26_at_12 08 26_pm

Alternately, you can create a separate oauth app for production. Advantage: it will have its own quota instead of sharing with RC. Disadvantage: will have to fill out all the required forms again to get the new app verified, quota increased, etc.

pdpinch commented 2 years ago

We should set this up before Monday, 2/14

pdpinch commented 2 years ago

@mbertrand can we close this now?

mbertrand commented 2 years ago

Unfortunately not

mbertrand commented 2 years ago

Now we can!