cs50 / submit50

This is submit50, CS50's command-line tool for submitting problems.
https://cs50.readthedocs.io/submit50
GNU General Public License v3.0
402 stars 915 forks source link

authorisation problems #242

Closed kingkande closed 3 years ago

kingkande commented 3 years ago

I can not authorize cs50 for the submission of my project

kzidane commented 3 years ago

Could you please be more specific (including screenshots if possible)? What steps did you take and what did you get as a results?

Nadine-NinT commented 3 years ago

I cannout authorise my password using github to sumbit work. I have tried using the link given by the course. However that redirects me to github and recommends using a personal access token instead of a passwords. Here is where I am confused, how do I use the token to authenticate my work....

tommylenz commented 3 years ago

@Nadine-NinT Are you using two factor authentication (2FA)? If so, you need to use a personal access token (PAT) instead of your password. There are plenty of good explanations online, I am sure you'll find one! 😄

Nadine-NinT commented 3 years ago

Hi Thomas, Yes I am using two factor authentication. When it comes time to insert the personal access token, I can insert my username but not the address. I do have faith that I will find a helpful explanation online.

Thank you for your attention Nadine

On Tue, Dec 1, 2020 at 6:09 PM Thomas Lenz notifications@github.com wrote:

@Nadine-NinT https://github.com/Nadine-NinT Are you using two factor authentication (2FA)? If so, you need to use a personal access token (PAT) instead of your password. There are plenty of good explanations online, I am sure you'll find one! 😄

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cs50/submit50/issues/242#issuecomment-736689907, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR6J4EAU6GXT7UEJANARKLDSSUPLNANCNFSM4S7434AQ .

zainab12ab commented 3 years ago

I am trying to submit problem set 1 for CS50X but get a github username/ password error. Please help, we have tried so many solutions nothing seems to help. Thank you.

tommylenz commented 3 years ago

@zainab12ab We are happy to help, but first please let us know what solutions you tried already. Do you have a 2FA problem as well? Provide screenshots if necessary!

zainab12ab commented 3 years ago

[image: pset.PNG]

On Sun, Dec 6, 2020 at 8:12 PM Thomas Lenz notifications@github.com wrote:

@zainab12ab https://github.com/zainab12ab We are happy to help, but first please let us know what solutions you tried already. Do you have a 2FA problem as well? Provide screenshots if necessary!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cs50/submit50/issues/242#issuecomment-739516232, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARPQSQZY4W3YOAFQ24LHG4LSTONMRANCNFSM4S7434AQ .

tommylenz commented 3 years ago

Hey @zainab12ab, this didn't quite work out. Please try sharing the image again, preferably using the buttons and not using the github-flavored-markdown yourself (this usually leads to some error)!

aneeqakbar commented 3 years ago

Hey, I cant verify using submit50. I am pretty sure that I am giving the right username and pass as I use them to log in to Github but I can't sign in using submit50. can you help me? (There's an image of the error below if you need) submit 50 err

tommylenz commented 3 years ago

@skipastyyyy Just to make sure:

  1. Are you using 2FA, and if so, did you use a PAT instead of your password (see above)?
  2. Have you enabled submit50 as requested by the error message?

Behind the scenes submit50 just executes some basic git commands, and as you are using CS50's IDE you have a working environment with git installed. It has to be some sort of authentication error - let's see whether we can figure it out.

aneeqakbar commented 3 years ago

@skipastyyyy Just to make sure:

  1. Are you using 2FA, and if so, did you use a PAT instead of your password (see above)?
  2. Have you enabled submit50 as requested by the error message?

Behind the scenes submit50 just executes some basic git commands, and as you are using CS50's IDE you have a working environment with git installed. It has to be some sort of authentication error - let's see whether we can figure it out.

@tommylenz No I am not using 2FA but I tried using PAT but it doesn't seem to work and I have also enabled submit50 in my GitHub account

tommylenz commented 3 years ago

Could you please run the submit50 command

  1. using the --version flag, just to make sure your workspace is up-to-date (submit50 --version)
  2. using the --verbose flag and your problem's slug, so that we get some extra output (submit50 --verbose [slug])?
tommylenz commented 3 years ago

Asking @kzidane to #close this issue.

aneeqakbar commented 3 years ago

Could you please run the submit50 command

  1. using the --version flag, just to make sure your workspace is up-to-date (submit50 --version)
  2. using the --verbose flag and your problem's slug, so that we get some extra output (submit50 --verbose [slug])?

ok

kzidane commented 3 years ago

@skipastyyyy where are you located?

aneeqakbar commented 3 years ago

@skipastyyyy where are you located?

Pakistan but why?

kzidane commented 3 years ago

Just trying to see if you were in one of the countries where US sanctions are applied which would result in your GitHub account being restricted. Pakistan is not one of these countries though. Have you ever logged into https://submit.cs50.io/?

kzidane commented 3 years ago

@Nadine-NinT are you sure the personal access token you generated has the "repo" scope?

aneeqakbar commented 3 years ago

Just trying to see if you were in one of the countries where US sanctions are applied which would result in your GitHub account being restricted. Pakistan is not one of these countries though. Have you ever logged into https://submit.cs50.io/?

Yea see and I have completed 2 psets and now I want to upload them. Please help me bro.

submit1

kzidane commented 3 years ago

@skipastyyyy what's the output of running the following command?

submit50 --verbose cs50/problems/2020/x/hello
aneeqakbar commented 3 years ago

@skipastyyyy what's the output of running the following command?

submit50 --verbose cs50/problems/2020/x/hello

is it ok if "hello" file is not uploaded? submit2

kzidane commented 3 years ago

Yes. Only hello.c is required.

aneeqakbar commented 3 years ago

Yes. Only hello.c is required.

OK bro thx seems like my problem is solved thank you so much. Appreciate your time

tommylenz commented 3 years ago

Seems that this issue can be closed now.

Nadine-NinT commented 3 years ago

Hi Kareem, First thank you for asking. I have to go and check if the PAT I did has a repo Scope. I am hoping now that cs50 2021 is open; I can start finishing projects again

Kind regards, Nadine

On 9 Dec 2020, at 2:56 PM, Kareem Zidane notifications@github.com wrote:

 @Nadine-NinT are you sure the personal access token you generated has the "repo" scope?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

kingkande commented 3 years ago

Hi please i need assistance with psets 1

On Mon, 11 Jan 2021, 11:36 am Nadine-NinT, notifications@github.com wrote:

Hi Kareem, First thank you for asking. I have to go and check if the PAT I did has a repo Scope. I am hoping now that cs50 2021 is open; I can start finishing projects again

Kind regards, Nadine

On 9 Dec 2020, at 2:56 PM, Kareem Zidane notifications@github.com wrote:

 @Nadine-NinT are you sure the personal access token you generated has the "repo" scope?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cs50/submit50/issues/242#issuecomment-757863744, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQYEAIJZRBUDACNHPKBBF3SZLIDDANCNFSM4S7434AQ .

dmalan commented 3 years ago

Hi please i need assistance with psets 1

@kingkande, best to post in any of https://cs50.harvard.edu/x/2021/communities/ with pset questions!

kingkande commented 3 years ago

Ok thank you sir will do.

On Fri, 22 Jan 2021, 6:25 pm David J. Malan, notifications@github.com wrote:

Hi please i need assistance with psets 1

@kingkande https://github.com/kingkande, best to post in any of https://cs50.harvard.edu/x/2021/communities/ with pset questions!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cs50/submit50/issues/242#issuecomment-765568322, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQYEALNUIZWKJCLPMI2RETS3GYHVANCNFSM4S7434AQ .

Yaman-Kh commented 3 years ago

@kzidane I am having the same problem that was happening with @aneeqakbar but I am located in Syria is my country one the countries where US sanctions are applied which would result in my GitHub account being restricted. I was trying to submit my c problem for several weeks but I am facing the same problem
(msg) lib50._errors.Error: Make sure your username and/or password are valid and submit50 is enabled for your account. To enable submit50, please go to https://submit.cs50.io in your web browser and try again. If you're using GitHub two-factor authentication, you'll need to create and use a personal access token with the "repo" scope instead of your password. See https://cs50.ly/github-2fa for more information!
I tried :

  1. using PAT instead of password
  2. I mad sure that the password and the user name are right
AllenPaul-17 commented 1 year ago

then how did you resolve it ?