java-gitlab-api
java-gitlab-api copied to clipboard
Session Not Working
When I'm using the method below, It will throw java.io.FileNotFoundException.
GitlabSession session = GitlabAPI.connect("https://myGitlabURL", "username", "password");
The GitlabAPI is working well, the problem is the session and createUser. Thanks in advance.
I've the same problem! There's anything I can make to get GitLabSession?
/session endpoint was removed in GitLab 10.2+
Instead, you need to use OAuth2 authentication. Either write code for that or use gmessner/gitlab4j library that already has that implemented (gmessner/gitlab4j-api#111)
Here (lines 48-70) you can see an example of how OAuth2 GitLab authentication can be done from Java.
Is there any solution to this problem?
It'd be nice to have such a code include in there, because afaik, gitlab4j is not compatible with android java (?)