laravel-gitscrum icon indicating copy to clipboard operation
laravel-gitscrum copied to clipboard

Error with Gitlab CE provider

Open edbizarro opened this issue 7 years ago • 5 comments

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

edbizarro avatar Mar 06 '17 18:03 edbizarro

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 avatar Mar 07 '17 14:03 harrysbaraini

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

harrysbaraini avatar Mar 07 '17 16:03 harrysbaraini

@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

edbizarro avatar Mar 22 '17 21:03 edbizarro

Hi @edbizarro,

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

renatomarinho avatar Mar 26 '17 10:03 renatomarinho

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();

edbizarro avatar Mar 30 '17 18:03 edbizarro