gitscrum-team / laravel-gitscrum

GitScrum is a Project Management Tool, developed to help entrepreneurs, freelancers, managers, and teams Skyrocket their Productivity with the Agile methodology and Gamification.
https://site.gitscrum.com
MIT License
2.88k stars 731 forks source link

Error with Gitlab CE provider #183

Open edbizarro opened 7 years ago

edbizarro commented 7 years ago

When using Gitlab CE integration

The redirected URL throws this error

Call to undefined method SocialiteProviders\GitLab\Provider::getAccessTokenResponse()

http://gitscrum.app/auth/provider/gitlab/callback?code=758deb556788af726588222166ec20555eb288f4b00fcf1ae573412a23bb4e4a&state=rG5Prt22S0XeU9wIxvcPV1PORMYCWQURuTnQTebD

branch master

harrysbaraini commented 7 years ago

Changing line 35 in file socialiteproviders/manager/src/Oauth2/AbstractProvider from getAccessTokenResponse to getAccessToken I manage to get Gitlab Provider pass this phase, but it does not work anyway, because Gitlab returns a 401 Unauthorized.

harrysbaraini commented 7 years ago

@edbizarro checkout #166 ! I've got it working after following the steps presented in that issue.

edbizarro commented 7 years ago

@harrysbaraini yeah, that fix the error, but now i'm getting another one on http://gitscrum.app/wizard/step1

FatalThrowableError in Gitlab.php line 168: Call to a member function users() on null

renatomarinho commented 7 years ago

Hi @edbizarro,

I did fix for that, please do a pull and test again.

edbizarro commented 7 years ago

Hi @renatomarinho the error is still there.

I manage to correct by filter the $repositories collection removing NULL values

// step1()

$repositories = (object) app(Auth::user()->provider)->readRepositories();
$repositories = $repositories->filter();