NeedIt app import problem - "Repository authentication failed, check credentials. Make sure the user has both read and write access"

marton_varga
Tera Contributor

Hey everyone,

I'm trying to complete the ATF course on developer.servicenow.com, and I just can't import the NeedIt Application described on this page: Exercise: Fork Repository and Import Application for the Using the Automated Test Framework Module
I've already read similar posts on this forum, found no solution for it so far.

What I did:

1. Opened github, forked the NeedIt application.
2. Created a new personal token - gave read & write access.
3. Created a new Credentials entry - Basic Auth Credentials:

  • User name: my github username (tried with github email address as well, no success)
  • Password: token from step 2 (tried with my github account password as well, no success)

4. Entered Studio > Import From Source Control:

  • Network protocol: https
  • URL: the clone URL from the newly forked github repo (tried with and without the .git at the end)
  • Branch: main
  • Credential: the one made in step 3

5. Hit the Import button

The above described tries all yielded the same result: when the status bar reached 57%, it returned "Repository authentication failed, check credentials. Make sure the user has both read and write access".
Is there something I'm missing, or is there a bug I'm not aware of?

7 REPLIES 7

Maik Skoddow
Tera Patron
Tera Patron

Hi

basic auth is not supported anymore by GitHub and you have to create a private access token.

Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/

And for creating the access token: https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/crea...

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

Hey Maik,

Yes, I am aware of that fact, hence why I created a token in step 2 and used that one later on. There's a picture attached showing the token.

Kind regards,
Marton

Hi @marton.varga 

I have just tested it out, and it worked fine for me.

Please note:

  • The Git repo URL must have the ending ".git", in your case "https://github.com/<GIT USERNAME>/devtraining-needit-quebec.git
  • In your screenshot "creds.jpg" the password does not seem to be correct as it is too short. Please use here the personal access token
  • When configuring the personal access token, did you check all "repo" options?

    find_real_file.png

 

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

Hi @marton.varga 

Did my reply answer your question?

If so, please mark the appropriate response as "correct" so that the question will appear as resolved for other users who may have a similar question in the future.

If not, please tell me what you are still missing!

Many thanks & kind regards
Maik