not authorized on the GitHub

Started by UAEArchitect, January 08, 2024, 15:57:13 PM

Previous topic - Next topic

UAEArchitect

Hi to all
Can someone help me with this error ?
---
org.eclipse.jgit.api.errors.TransportException: https://github.com/2024AjaxArchi/GitArchi: not authorized
   at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:159)
   at org.archicontribs.modelrepository.grafico.ArchiRepository.pushToRemote(ArchiRepository.java:211)
   at org.archicontribs.modelrepository.actions.CreateRepoFromModelAction$1.run(CreateRepoFromModelAction.java:124)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/2024AjaxArchi/GitArchi: not authorized
   ... 3 more

---
What did I do wrong?
What do I have to do?

Thank you in advance

Phil Beauvoir

Hi,

what authorisations credentials are you using? For GitHub you need to provide your user name and a Personal Access Token (use this as password) for the repository in Archi. You can enter this by selecting the repository in the Collaboration Workspace and then in the Properties window, Authentication tab.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

UAEArchitect

I'm use credential for GitHub - username (2024AjaxArchi) and Password.
Apply it in Archi -> Preferences -> Collaboration
In Global User Details: Name for GitHub
In Authentication: Password for GitHub

When I start "Add remote model ..." I insert path and the same credential for Git and I get the error response below.

What do you mean Phil by "Personal Access Token"?
How can І get it?

Phil Beauvoir

If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

UAEArchitect

Thanks Phil.
So I need to create a SHH token or something else?
And configure Archi to use this token?

Phil Beauvoir

Quote from: UAEArchitect on January 11, 2024, 17:56:23 PMThanks Phil.
So I need to create a SHH token or something else?
And configure Archi to use this token?

Not for https connections. You need to create a new PAT and use that. Please read https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

UAEArchitect

#6
Quote from: Phil Beauvoir on January 11, 2024, 17:57:37 PMYou need to create a new PAT

Thanks so much Phil for your help.
I generated the PAT as you suggested and successfully completed the first synchronization.  ;D