github-for-unity / Unity

GitHub for Unity
https://unity.github.com/
MIT License
3.05k stars 447 forks source link

Login Issues #1152

Closed Danickar closed 2 years ago

Danickar commented 3 years ago

Prerequisites

Description

When my students try to login they get an error message "Error validating token." I know the internet filter isn't blocking GitHub because the students can login to the GitHub website and the GitHub desktop app.

Steps to Reproduce

  1. Click on Sign In for GitHub for Unity
  2. Click Sign in with your browser
  3. After the browser opens and does its thing, going back to Unity has the error message.

Expected behavior: [What you expect to happen] GitHub signs in so students can access repositories directly in Unity.

Actual behavior: [What actually happens] Does not sign in with Error Validating Token

Reproduces how often: [What percentage of the time does it reproduce?] It reproduces 100% for my students.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

We are using Unity LTS 2020.3.14 with Unity GitHub 1.4 github-unity.log

CarrierChristopher21 commented 3 years ago

i got the same issue

mrdaljama commented 3 years ago

I also got the same issue with Unity LTS 2020.3.3f1 and Unity GitHub 1.4

AlexGalindoFreire commented 3 years ago

I also had the same issue on Unity 2021.1.20f1

AlecMuchnok commented 3 years ago

Same issue on Unity 2019.3.3f1. I recently got an email from GitHub about changing my personal authentication token. I'm not a Git expert, so I just did what it said, but I think it messed up my account for GitHub for Unity. When I click the normal sign in button, I get an error that says "Not Found" and when I click sign in with browser, I get the same error as above. This is regardless of whether I use my password or authentication token as the password. I've been able to work around it by signing in using the command line with my authentication token.

yuran09 commented 3 years ago

I have the same error when I dont put the required credentials

0xEquinox commented 3 years ago

Same problem

darkfoxtokoyami commented 3 years ago

I have the same "Not Found" issue. Signing in with a browser doesn't work either (tried Firefox and Chrome). It just hangs after I auth with github and says "Error Validating Token." I couldn't work around this with the github console because it would immediately close as soon as it opened.

Crazyafk commented 3 years ago

Yeah happened to me 2021.1.13f1 Shame this project is dead, does anyone know of a working alternative?

kevduc commented 3 years ago

Same here

demolen commented 3 years ago

same here

kevduc commented 3 years ago

Yeah happened to me 2021.1.13f1 Shame this project is dead, does anyone know of a working alternative?

I ended up not logging in and setting up the remote and publishing the first time directly with VSCode (I guess you could also do it from the command line). Now I can do everything fine from the plugin.

jrdndj commented 3 years ago

happens to me too. And in turn whenever I wish to push to my repository, I always get an error message "Device not configured". Repo details are all correct except for this sign in bug. Im using github desktop too so I know the local settings are properly configured as wel. Is this somehow related too to why I am having trouble pushing my changes from local to remote?

StudioAlbert commented 3 years ago

Issue confirmed : last version of github for unity (1.4.0) and Unity 2020.3.21f1 (LTS) I can not login (with Username / Password or with Browser)

I finally found something : the paths to git programm (Settings\Path to git + Settings\Path to git LFS) were not set properly. I push the button "Find system Git" it solves connection issues and i could push my project.

bilalgrden commented 3 years ago

same here

BenCraystonStudent commented 3 years ago

Same issue.

kennethdemaio commented 3 years ago

Same issue

TurtleSeal commented 3 years ago

Any fixes? I pressed "find system git" but that didn't solve my problem...

blockimperiumdao commented 3 years ago

Tried all of the recommendations and nothing really works. It's just totally broken for signing in - something that is kinda a fundamental ability of being able to use the plugin.

05Alston commented 3 years ago

Here's how I'm currently using it.

  1. Initialize a repository with Github desktop and add unity libraries to it.
  2. then open the project and import GitHub for unity.

Screenshot 2021-11-20 205907

  1. It shows up like this. Even though I can't sign in here, I can push/pull and commit to my repository.
chantzish commented 2 years ago

I've submited a pull request with a fix https://github.com/github-for-unity/Unity/pull/1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

TurtleSeal commented 2 years ago

I switched to plastic scm

On Thu, Jan 13, 2022 at 12:17 PM chantzish @.***> wrote:

I've submited a pull request with a fix #1160 https://github.com/github-for-unity/Unity/pull/1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 15: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

— Reply to this email directly, view it on GitHub https://github.com/github-for-unity/Unity/issues/1152#issuecomment-1012389620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWQX6BKYLM56L2KKAYAHID3UV4JKHANCNFSM5DZ5KNIA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

jillazalat commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

This worked for me, thank you!

Miredly commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

This also worked for me, thanks!

BensonCoolfi commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

worked for me too. thank you so much

DougCruz commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

THANK YOU. this worked perfectly!!!

Ross-Patterson commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Worked perfectly.

For anyone on Mac, the file location is: Users\Username\Library\Application Support\GitHubUnity\octorun\src\api.js

Shrammer1 commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

This worked for me as well.

AndyPorsche commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

You've saved us after 3 hours of searching!

RaYVen1337 commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Still only working like this for me, Thanks!

icariantk commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Still need to do that today.

aliceakesson commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Worked perfectly, thank you so much!

SuperDizor commented 2 years ago

Thank you! Worked for me

lordhaywire commented 2 years ago

Worked for me too!

mediajolt001 commented 2 years ago

Works for me!

jeffmaley commented 2 years ago

This worked

ChiHoFung commented 2 years ago

Worked for me, thank you.

AutoKhal commented 2 years ago

thanks mate! switching oauth to token worked for me as well

Lounode commented 2 years ago

thanks!!! it worked~!

MonaTZ commented 2 years ago

Thanks!! Worked for me too!!!!

DanielVidarHolm commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Yup that worked! Thank you

Remusqs1 commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Are you GOD?? Thanks a lot for your answer, it worked well. It is incredible that the Unity team has not solved this or accepted the merge

lojithv commented 2 years ago

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Thanks :) It worked

shana commented 2 years ago

This project is not maintained anymore. The replacement is Git for Unity, at https://github.com/spoiledcat/git-for-unity. If you have GitHub for Unity in your project, remove it first and then install the Git for Unity package, see the README in the link for instructions.

jrdndj commented 2 years ago

thanks for this. by the way where do I find instructions so I can remove Git from my unity?