@ -266,14 +266,12 @@ class IsekaiOIDCAuth extends AbstractPrimaryAuthenticationProvider {
}
if ( isset( $config['scope'] ) ) {
$scope = $config['scope'];
if ( is_array( $scope ) ) {
foreach ( $scope as $s ) {
$oidc->addScope( $s );
if ( ! is_array( $scope ) ) {
$scope = [ $scope ];
} else {
$oidc->addScope( $scope );
if ( isset( $config['proxy'] ) ) {
$oidc->setHttpProxy( $config['proxy'] );
@ -35,7 +35,7 @@ class SpecialIsekaiOIDCCallback extends LoginSignupSpecialPage {
public function getDescription() {
return $this->msg( 'login' )->text();
return $this->msg( 'login' );
public function setHeaders() {
@ -967,7 +967,7 @@ class OpenIDConnectClient
// Convert token params to string format
$post_params = http_build_query($post_data, null, '&', $this->encType);
$post_params = http_build_query($post_data, '', '&', $this->encType);
return json_decode($this->fetchURL($token_endpoint, $post_params, $headers), false);