Oxygen Git integration does not work for me

Oxygen general issues.
GreatOm
Posts: 3
Joined: Wed Sep 29, 2021 11:21 am

Oxygen Git integration does not work for me

Post 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
alex_jitianu
Posts: 1009
Joined: Wed Nov 16, 2005 11:11 am

Re: Oxygen Git integration does not work for me

Post 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
GreatOm
Posts: 3
Joined: Wed Sep 29, 2021 11:21 am

Re: Oxygen Git integration does not work for me

Post 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?
alex_jitianu
Posts: 1009
Joined: Wed Nov 16, 2005 11:11 am

Re: Oxygen Git integration does not work for me

Post 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
GreatOm
Posts: 3
Joined: Wed Sep 29, 2021 11:21 am

Re: Oxygen Git integration does not work for me

Post 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.
Post Reply