Skip to content

Commit 7c830bb

Browse files
authored
Remove sources format for multiauth replaced in 1.9 (#1747)
The old format has been replaced with a new format in SSP 1.9. The new format makes sense and it's now time to stop supporting the legacy format.
1 parent a3dd4af commit 7c830bb

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

modules/multiauth/docs/multiauth.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ The keys of the sources array are the identifiers of authentication
7171
sources defined in the authsources.php configuration file. The
7272
values are arrays with information used to create the user
7373
interface that will let the user select the authentication source
74-
he wants. Older versions of the multiauth module did not have
75-
this structure and just have the authsources identifiers as the
76-
values of the sources array. It has been improved in a backwards
77-
compatible fashion so both cases should work.
74+
they want.
7875

7976
Each source in the sources array has a key and a value. As
8077
mentioned above the key is the authsource identifier and the value

modules/multiauth/src/Auth/Source/MultiAuth.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ public function __construct(array $info, array $config)
8787
/** @psalm-var array $sources */
8888
$sources = $config['sources'];
8989
foreach ($sources as $source => $info) {
90-
if (is_int($source)) {
91-
// Backwards compatibility
92-
$source = $info;
93-
$info = [];
94-
}
95-
9690
if (array_key_exists('text', $info)) {
9791
$text = $info['text'];
9892
} else {

tests/modules/multiauth/src/Controller/DiscoControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ protected function setUp(): void
5757
'multi' => [
5858
'multiauth:MultiAuth',
5959
'sources' => [
60-
'admin',
61-
'admin2'
60+
'admin' => [],
61+
'admin2' => [],
6262
]
6363
],
6464
],

0 commit comments

Comments
 (0)