Search code examples
youtube-apigoogle-oauth

YouTube API - avoid authentication screen in browser


I have a YouTube class which uploads a video on YouTube using a OAuth authentication. When I tested it on my local workspace, it worked fine but opened a browser asking if the access to my YouTube channel is permitted.

Now, my class should work on a server. There is no browser which can open and that's the problem. Everything works up to this point.

Does anybody have an idea how I could redirekt/avoid or do anything else with this browser window?

Thanks a lot for your help! Best wishes.


Solution

  • thank you for your help!

    The solution of my problem was to authenticate the access on my local browser and to copy the stored token to the server.

    Best wishes!