Skip to content

Commit 02526ff

Browse files
authored
Move module_oidc.php to module_oidc.php.dist (#279)
* Move module_oidc.php to module_oidc.php.dist * Adjust path to config in tests * Adjust path to config in integration tests
1 parent 4e6bdaa commit 02526ff

File tree

7 files changed

+11
-13
lines changed

7 files changed

+11
-13
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Installation can be as easy as executing:
4646

4747
Copy the module config template file to the SimpleSAMLphp config directory:
4848

49-
cp modules/oidc/config-templates/module_oidc.php config/
49+
cp modules/oidc/config/module_oidc.php.dist config/
5050

5151
The options are self-explanatory, so make sure to go through the file and edit them as appropriate.
5252

UPGRADE.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,14 @@ key `authproc.oidc`
8181

8282
## Low impact changes
8383

84-
In an effort to move to SimpleSAMLphp way of working with user interface (UI), the client management UI was updated
84+
- In an effort to move to SimpleSAMLphp way of working with user interface (UI), the client management UI was updated
8585
to extend from the SimpleSAMLphp base template. In addition, we have also introduced some configuration overview pages
8686
where you can take a quick view of some of the configuration values for the module. OIDC related pages are now available
87-
from the main SimpleSAMLphp menu in Administration area.
87+
from the main SimpleSAMLphp menu in Administration area.
88+
89+
- The OIDC config template file has been moved from `config-templates/module_oidc.php` to `config/module_oidc.php.dist`.
90+
This is only relevant for new installations, since initially it is needed to copy the template file to default SSP
91+
config dir. README has been updated to reflect that change.
8892

8993
Below are also some internal changes that should not have impact for the OIDC OP implementors. However, if you are using
9094
this module as a library or extending from it, you will probably encounter breaking changes, since a lot of code
File renamed without changes.

phpcs.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<config name="show_progress" value="1"/>
1010
<config name="ignore_warnings_on_exit" value="0"/>
1111

12-
<file>config-templates</file>
12+
<file>config</file>
1313
<file>hooks</file>
1414
<file>src</file>
1515
<file>tests</file>

psalm.xml

+1-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
1111
>
1212
<projectFiles>
13-
<directory name="config-templates" />
13+
<directory name="config" />
1414
<directory name="hooks" />
1515
<directory name="src" />
1616
<directory name="templates" />
@@ -29,12 +29,6 @@
2929
<file name="tests/bootstrap.php" />
3030
</errorLevel>
3131
</UnresolvableInclude>
32-
<!-- Ignore UnusedVariable in config template -->
33-
<UnusedVariable>
34-
<errorLevel type="suppress">
35-
<file name="config-templates/module_oidc.php" />
36-
</errorLevel>
37-
</UnusedVariable>
3832
<InvalidClassConstantType>
3933
<errorLevel type="suppress">
4034
<file name="src/Forms/Controls/CsrfProtection.php" />

tests/integration/src/Repositories/AccessTokenRepositoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function setUpBeforeClass(): void
8787
self::$mysqlPort ??= "3306";
8888
self::$postgresPort ??= "5432";
8989
}
90-
Configuration::setConfigDir(__DIR__ . '/../../../../config-templates');
90+
Configuration::setConfigDir(__DIR__ . '/../../../config');
9191
self::$pgConfig = self::loadPGDatabase();
9292
self::$mysqlConfig = self::loadMySqlDatabase();
9393
self::$sqliteConfig = self::loadSqliteDatabase();

tests/unit/src/Repositories/ScopeRepositoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function setUpBeforeClass(): void
4141
];
4242

4343
Configuration::loadFromArray($config, '', 'simplesaml');
44-
Configuration::setConfigDir(__DIR__ . '/../../../../config-templates');
44+
Configuration::setConfigDir(__DIR__ . '/../../../config');
4545
(new DatabaseMigration())->migrate();
4646
}
4747

0 commit comments

Comments
 (0)