Google OAUTH: The redirect URI in the request did not match a registered redirect URI

前端 未结 5 859
眼角桃花
眼角桃花 2020-12-04 19:10

I am trying to make an upload to YouTube from my Java based web app, I spent a few days to understand what and where is the problem and I cannot get it, for now I am pulling

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 19:27

    I was able to get mine working using the following Client Credentials:

    Authorized JavaScript origins

    http://localhost

    Authorized redirect URIs

    http://localhost:8090/oauth2callback

    Note: I used port 8090 instead of 8080, but that doesn't matter as long as your python script uses the same port as your client_secret.json file.

    Reference: Python Quickstart

提交回复
热议问题