(2019-03-13, 19:30)cnwoods Wrote: No luck I'm afraid.
I moved my old ~/.kodi/ directory out of the way and created a new one. After adding sources and updating music and video libraries, I added Youtube. Then I created the API and client keys and added them.
I'm still getting a LoginException [400]: invalid_request, with the settings screen overlaying the sign-in every time I try to sign in, and a Youtube: forbidden clicking other youtube links.
Looking at your 3/10 log, this parts seems to reflect the meat of the issue:
2019-03-10 14:41:32.117 T:140321305589504 DEBUG: [plugin.video.youtube] Selecting YouTube config "All"
2019-03-10 14:41:32.117 T:140321305589504 DEBUG: [plugin.video.youtube] User is not logged in
2019-03-10 14:41:32.117 T:140321305589504 DEBUG: [plugin.video.youtube] Requesting device and user code: Config: |YouTube-TV| Client id [:5]: |86155|
2019-03-10 14:41:32.403 T:140321337636608 DEBUG: CWebServer[8080]: request received for /jsonrpc
2019-03-10 14:41:32.443 T:140321305589504 DEBUG: DialogProgress::Open called 2019-03-10 14:41:32.443 T:140321305589504 DEBUG: ------ Window Init (DialogConfirm.xml) ------
2019-03-10 14:41:32.443 T:140321305589504 INFO: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2019-03-10 14:41:32.448 T:140321305589504 DEBUG: [plugin.video.youtube] Requesting access token: Config: |YouTube-TV| Client id [:5]: |86155| Client secret [:5]: |SboVh|
2019-03-10 14:41:32.457 T:140321337636608 DEBUG: CWebServer[8080]: request received for /jsonrpc
2019-03-10 14:41:32.659 T:140321305589504 ERROR: [plugin.video.youtube] Requesting access token: Code: |400| JSON: |{u'error_description': u'Credentials in post body and basic Authorization header do not match', u'error': u'invalid_request'}|
2019-03-10 14:41:32.687 T:140321305589504 ERROR: [plugin.video.youtube] LoginException: [400] invalid_request: Credentials in post body and basic Authorization header do not match
Based on what I'm seeing above, the problem looks pretty clear-cut: your credentials are not matching what Google/YouTube API is expecting. So, not to sound like a broken record here, but I would strongly suggest you start over and go through the tutorial I linked above. Uninstall the YT app, restart Kodi, reinstall the app. Then before you try to sign in, go to the Google Dev site and create a brand new set of credentials. The process is somewhat confusing unless you've used Google's developer API tools before.
Make sure you assign Youtube API v3 for starters. Your Client ID will be the longest of the 3 key values. It should start with a 12-digit number, followed by a dash (-) and an alphanumeric string, and appended with .apps.googleusercontent.com
The Secret will be the shortest value.
Also note that Google does not subscribe to some API best practices. For instance, their keys use characters such as i, I, l, o, O, and 0. Depending on the font, if you are manually copying and pasting this can easily result in errors. It's also common to mis-type or miss a character or two when transcribing manually, as many folks do in this case (Kodi).