joedawson / youtube

Upload a video to a single YouTube channel with Laravel 5.
MIT License
175 stars 105 forks source link

An access token is required. #105

Closed QadeerQT closed 1 year ago

QadeerQT commented 5 years ago

Hi Jeo!

I'm getting Token required error while already Enabled route option but still it's not working. screenshot from 2019-02-18 17-42-06

`<?php

return [

/**
 * Client ID.
 */
'client_id' => env('GOOGLE_CLIENT_ID', null),

/**
 * Client Secret.
 */
'client_secret' => env('GOOGLE_CLIENT_SECRET', null),

/**
 * Scopes.
 */
'scopes' => [
    'https://www.googleapis.com/auth/youtube',
    'https://www.googleapis.com/auth/youtube.upload',
    'https://www.googleapis.com/auth/youtube.readonly'
],

/**
 * Route URI's
 */
'routes' => [

    /**
     * Determine if the Routes should be disabled.
     * Note: We recommend this to be set to "false" immediately after authentication.
     */
    'enabled' => true,

    /**
     * The prefix for the below URI's
     */
    'prefix' => 'youtube',

    /**
     * Redirect URI
     */
    'redirect_uri' => 'callback',

    /**
     * The autentication URI
     */
    'authentication_uri' => 'auth',

    /**
     * The redirect back URI
     */
    'redirect_back_uri' => '/',

]

]; `

joedawson commented 5 years ago

Is your youtube_access_tokens table empty?

gazben commented 5 years ago

@joedawson Same problem here. The table is empty. The client_id and secret are in the env file. Did I miss something?

gazben commented 5 years ago

@joedawson false alert, sorry. Solution: https://stackoverflow.com/questions/13871982/unable-to-refresh-access-token-response-is-unauthorized-client