- Create a new project in Google Cloud Platform
- Enable
YouTube Data API v3
API - Configure OAuth consent screen: set user type as
External
and publish it - Create a new OAuth 2.0 client ID. Set application type as
Web application
and add authorized redirect URIs:https://developers.google.com/oauthplayground
,http://localhost
,http://127.0.0.1/authorize/
- Download client_secrets.json and add to project
- Send GET
api/GetRefreshToken
to get refresh token
az login -t TENANT_ID
az deployment group create --name Deployment --resource-group RESOURCE_GROUP_NAME --template-file infrastructure.bicep