I've been trying to set up Open ID Connect authentication with a self-hosted GitLab instance, but the plugin keeps complaining that identifier is null while being inserted into the database:
I did some digging and found out that this part of code (line 280 - 286) reset $uid to null, causing $this->socialConnect->connectLogin($currentUid, $uid) to fail when attempting to insert the arguments into the database (the plugin should have throw the exception, fixed in #4).
However, if I comment out the aforementioned part of code completely, OpenID authentication seems working without any problem. I'm wondering what does this part of code do and if there a better fix? Thank you!
Hi all,
I've been trying to set up Open ID Connect authentication with a self-hosted GitLab instance, but the plugin keeps complaining that
identifier
is null while being inserted into the database:I did some digging and found out that this part of code (line 280 - 286) reset $uid to null, causing
$this->socialConnect->connectLogin($currentUid, $uid)
to fail when attempting to insert the arguments into the database (the plugin should have throw the exception, fixed in #4).However, if I comment out the aforementioned part of code completely, OpenID authentication seems working without any problem. I'm wondering what does this part of code do and if there a better fix? Thank you!