GoogleWebAuthorizationBroker.AuthorizeAsync Hangs

前端 未结 4 1577
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 10:30

Our website needs to upload videos to youtube from the code behind (asp.net mvc application). I\'m trying to get the google credentials, but when i call the AuthorizeAsync,

4条回答
  •  爱一瞬间的悲伤
    2020-11-30 10:47

    GoogleWebAuthorizationBroker.Folder = "YouTube.Auth.Store";
    

    This line will generate a access token in YouTube.Auth.Store/xxx, and you need to right click this file -> properties -> Copy to Output Directory -> Copy always in visual studio

    it works for me.

提交回复
热议问题