laravel-gitscrum
laravel-gitscrum copied to clipboard
Error with Gitlab CE provider
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
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.
@edbizarro checkout #166 ! I've got it working after following the steps presented in that issue.
@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
Hi @edbizarro,
I did fix for that, please do a pull and test again.
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();