Page 1 of 1

Oxygen Git integration does not work for me

Posted: Wed Sep 29, 2021 11:40 am
by GreatOm
Hi!

We'd like to introduce our students GIT with Oxygen XML Editor.

Now I did install the Git Client 2.5.2 Add-On and tried an upload to our GIT Server. Unfortunately it does not work. I get an exception:
org.eclipse.jgit.api.errors.TransportException: https://…/: Redirection blocked: redirect https://…/ -> https://…/users/sign_in not allowed
We run a local GitLab installation which works fine, e.g. using Xcode with access token used and no user sign-in.
I see no configuration dialog where I can enter the access token as mentioned on https://www.oxygenxml.com/doc/versions/ ... addon.html.

What did I miss?

TIA,

GreatOm

Re: Oxygen Git integration does not work for me

Posted: Thu Sep 30, 2021 12:24 pm
by alex_jitianu
Hello,

The Git plugin supports authentication through Personal Access Tokens. It is possible that you've activated OAuth authentication on your GitLab repositories which is not supported by the plugin. The OAuth authentication usually pops up a browser in which the user inputs its credentials and the application receives in return a token to use when interacting with the repository.

You could install a SSH key on the user systems and go with this type of authentication inside the Git plugin.

Best regards,
Alex

Re: Oxygen Git integration does not work for me

Posted: Thu Sep 30, 2021 2:10 pm
by GreatOm
Hi Alex,

Thanks for your reply.
My GIT Server does Support Access Tokens and I use one successful from Xcode.
My problem is that there is no dialog where I can enter the token in Oxygen/GIT-Add-on.

The "Git Client Add-on" page states:
The Git Client allows you to authenticate … or a personal access token.
But I find no way to enter the token.

BTW: I want to add a new file to the GIT repository. I did not clone an existing repository.

Any clue what's wrong?

Re: Oxygen Git integration does not work for me

Posted: Mon Oct 04, 2021 4:28 pm
by alex_jitianu
Hello,

I'm not entirely sure why the credential dialog doesn't pop up. Because the error message said something about redirect, I assume this has something to do with a OAuth flow, in which redirections happen. Did you connect XCode to GitLab like this?
https://developer.apple.com/documentati ... changes=_7
BTW: I want to add a new file to the GIT repository. I did not clone an existing repository.
The way Git works, you always always have a local repository (also called clone). You make changes like adding new files, you then commit the change in the local repository and, at a later time, you push the commits into the remote repository which is linked to the local one. Some tools might hide this process and some Git distributions like GitLab or GitHub might also offer APIs that short-circuits this process, but Oxygen's Git client works only in the classic process: you need to clone the repository, add the file, commit and push.


Best regards,
Alex

Re: Oxygen Git integration does not work for me

Posted: Tue Oct 05, 2021 12:21 pm
by GreatOm
Many thanks Alex.

I did now create a new empty project in GIT.
A clone from Oxygen was successful and this time I could use an access token.

Now I was able to add a new file to then local project and it was successfully pushed to the remote repository.

So my problem is solved and we can start using GIT with Oxygen.