c# - Keep getting Error: redirect_uri_mismatch using youtube api v3 -
hi hope can me out here.
i have web application (asp.net) on local machine, trying upload video youtube using sample https://developers.google.com/youtube/v3/code_samples/dotnet#upload_a_video
i have set client id , secret web application in google console when try upload video browser tab opens select 1 of google accounts , once sig in redirect_uri_mismatch response details on page below:
cookie_policy_enforce=false scope=https://www.googleapis.com/auth/youtube.upload response_type=code access_type=offline redirect_uri=http://localhost:55556/authorize/ pageid=[some page id removed here security reasons] display=page client_id=[some unique id removed here security reasons].apps.googleusercontent.com
one interesting thing redirect_uri=http://localhost:55556/authorize/
different 1 set in google console , 1 in client_secrets.json each time error page port number changes.
redurect urls , origins set follows in google console think have added combinations in case:
authorized redirect uri
http://localhost/ https://localhost/ http://localhost:50169/addcontent.aspx https://localhost:50169/addcontent.aspx http://localhost:50169
authorized javascript origins
http://localhost/ https://localhost/ http://localhost:50169/ https://localhost:50169/
i not sure why redirect-uri on error page not match of authorized redirect uri have specified in google console ? ideas ?
also possible set-up correctly in google console , code error triggered else maybe missed setting on tube account ? did not make setting changes since don't think have correct ?
ok belive direct video upload website owner account no longer supported in yt api v3.0 according posts.
can youtube direct upload common account users?
how can youtube webcam widget upload 1 account using api?
shame, think need host videos users upload on servers.
however original issue fixed adding uri redirect uris in developer console
Comments
Post a Comment