Update to MW 1.42

落雨楓 1 month ago
parent 5b1e46a762
commit 1b1fbc51de

@ -266,13 +266,11 @@ class IsekaiOIDCAuth extends AbstractPrimaryAuthenticationProvider {
}
if ( isset( $config['scope'] ) ) {
$scope = $config['scope'];
if ( is_array( $scope ) ) {
foreach ( $scope as $s ) {
$oidc->addScope( $s );
}
} else {
$oidc->addScope( $scope );
if ( ! is_array( $scope ) ) {
$scope = [ $scope ];
}
$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);
}

Loading…
Cancel
Save