|
|
|
@ -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'] );
|
|
|
|
|