timols / java-gitlab-api

A wrapper for the Gitlab API written in Java
Apache License 2.0
387 stars 317 forks source link

add oauth2 Resource Owner Password Credentials Grant login method #383

Open mannixsuo opened 4 years ago

mannixsuo commented 4 years ago

/session endpoint was removed in GitLab 10.2+ so i add oauth2 login method

GitlabAPI api = GitlabAPI.oauth2Login("http://localhost", "username", "password");