Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSP-2066_add_routes_and_controllers #45

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
31c23a2
Move validate.php to symfony controller
ioigoume Nov 19, 2024
c497868
Fix quality errors
ioigoume Nov 19, 2024
cc0dbaf
Loggout Controller
ioigoume Nov 19, 2024
8a3aff9
LoggedOut Controller
ioigoume Nov 20, 2024
5b93932
Fix quality issues
tvdijen Nov 20, 2024
938d886
composer require checker for dev environments
ioigoume Nov 20, 2024
acc2e04
fix composer require checker version
ioigoume Nov 20, 2024
7287057
Add tests for LogoutController.php part1
ioigoume Nov 20, 2024
85bc476
psalm
ioigoume Nov 20, 2024
13db7a7
LogoutController.php tests part 2
ioigoume Nov 21, 2024
1c8b8a8
add CAS10 validate.php tests
ioigoume Nov 21, 2024
4e00a20
Add missing dependency
ioigoume Nov 21, 2024
44a3b0e
LoggedInController.php
ioigoume Nov 21, 2024
95af687
Cas10 validate improvements
ioigoume Nov 22, 2024
d9ab400
serviceValidate, proxyValidate, logoutController
ioigoume Nov 25, 2024
bd3649f
samlValidate.php controller and tests
ioigoume Nov 26, 2024
63269c8
fix psalm errors
ioigoume Nov 26, 2024
e1b3012
move proxy.php to Cas20Controller action
ioigoume Nov 27, 2024
3f3721a
Removed cas.php.Added LoginController.php
ioigoume Dec 1, 2024
ef816db
UrlTrait tests
ioigoume Dec 1, 2024
1072701
Add missing import
ioigoume Dec 1, 2024
38b43e5
LoginController Tests
ioigoume Dec 2, 2024
31cbf31
Tests for Cas20 validate
ioigoume Dec 3, 2024
31618c5
add tests for Proxy Service Validate
ioigoume Dec 4, 2024
f314472
More tests on Cas20Controller.php
ioigoume Dec 4, 2024
36c2e4e
Use TicketStore abstract class type
ioigoume Dec 15, 2024
640c7eb
Use Module::resolveClass
ioigoume Dec 15, 2024
801c4fd
Use RunnableResponse instead of redirect
ioigoume Dec 15, 2024
18e3e72
Added phpdocs
ioigoume Dec 15, 2024
dfea964
Fix run with docker instructions
pradtke Dec 5, 2024
9cc0b5c
xml response to UTF-8
ioigoume Dec 19, 2024
5ea16ac
Fix validation condition for CAS10
ioigoume Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,16 @@ of the `casserver` module mounted in the container, along with some configuratio
"live" in the container, allowing you to test and iterate different things.

```bash
# Note: this currently errors on this module requiring a newer version of `simplesamlphp/xml-common` than what is in the base image
docker run --name ssp-casserver-dev \
--mount type=bind,source="$(pwd)",target=/var/simplesamlphp/staging-modules/casserver,readonly \
-e STAGINGCOMPOSERREPOS=casserver \
-e COMPOSER_REQUIRE="simplesamlphp/simplesamlphp-module-casserver:@dev simplesamlphp/simplesamlphp-module-preprodwarning"
-e COMPOSER_REQUIRE="simplesamlphp/simplesamlphp-module-casserver:@dev simplesamlphp/simplesamlphp-module-preprodwarning" \
-e SSP_ADMIN_PASSWORD=secret1 \
--mount type=bind,source="$(pwd)/docker/ssp/module_casserver.php",target=/var/simplesamlphp/config/module_casserver.php,readonly \
--mount type=bind,source="$(pwd)/docker/ssp/authsources.php",target=/var/simplesamlphp/config/authsources.php,readonly \
--mount type=bind,source="$(pwd)/docker/ssp/config-override.php",target=/var/simplesamlphp/config/config-override.php,readonly \
--mount type=bind,source="$(pwd)/docker/apache-override.cf",target=/etc/apache2/sites-enabled/ssp-override.cf,readonly \
-p 443:443 cirrusid/simplesamlphp:v2.3.2
-p 443:443 cirrusid/simplesamlphp:v2.3.5
```

Visit [https://localhost/simplesaml/](https://localhost/simplesaml/) and confirm you get the default page.
Expand Down
29 changes: 20 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"config": {
"preferred-install": {
"simplesamlphp/simplesamlphp": "source",
"*": "dist"
"*": "source"
},
"allow-plugins": {
"composer/package-versions-deprecated": true,
Expand All @@ -35,33 +35,44 @@
"ext-filter": "*",
"ext-libxml": "*",
"ext-SimpleXML": "*",
"ext-pdo": "*",
"ext-session": "*",
"ext-xml": "*",

"simplesamlphp/assert": "^1.1",
"simplesamlphp/composer-module-installer": "^1.3",
"simplesamlphp/simplesamlphp": "^2.2",
"simplesamlphp/xml-cas": "^v1.3",
"simplesamlphp/xml-common": "^v1.17",
"simplesamlphp/xml-soap": "^v1.5"
"simplesamlphp/xml-cas": "^1.3",
"simplesamlphp/xml-common": "^1.17",
"simplesamlphp/xml-soap": "^1.5",
"symfony/http-foundation": "^6.4",
"symfony/http-kernel": "^6.4"
},
"require-dev": {
"simplesamlphp/simplesamlphp-test-framework": "^1.7",
"phpunit/phpunit": "^10",
"psalm/plugin-phpunit": "^0.19.0",
"squizlabs/php_codesniffer": "^3.7"
"squizlabs/php_codesniffer": "^3.7",
"maglnet/composer-require-checker": "4.7.1",
"vimeo/psalm": "^5"
},
"support": {
"issues": "https://github.com/simplesamlphp/simplesamlphp-module-casserver/issues",
"source": "https://github.com/simplesamlphp/simplesamlphp-module-casserver"
},
"suggest": {
"ext-pdo": "*"
},
"scripts": {
"validate": [
"vendor/bin/phpunit --no-coverage --testdox",
"vendor/bin/phpcs -p"
"vendor/bin/phpcs -p",
"vendor/bin/composer-require-checker check composer.json",
"vendor/bin/psalm -c psalm-dev.xml",
"vendor/bin/psalm -c psalm.xml"
],
"tests": [
"vendor/bin/phpunit --no-coverage"
],
"propose-fix": [
"vendor/bin/phpcs --report=diff"
]
}
}
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
bootstrap="tests/bootstrap.php"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
backupGlobals="false"
displayDetailsOnTestsThatTriggerWarnings="true"
cacheDirectory=".phpunit.cache">
<coverage>
<report>
Expand Down
4 changes: 4 additions & 0 deletions psalm-dev.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
name="SimpleSAMLphp testsuite"
useDocblockTypes="true"
errorLevel="4"
resolveFromConfigFile="true"
autoloader="vendor/autoload.php"
findUnusedCode="false"
findUnusedBaselineEntry="true"
reportMixedIssues="false"
hideExternalErrors="true"
allowStringToStandInForClass="true"
Expand Down
7 changes: 6 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
useDocblockTypes="true"
errorLevel="2"
reportMixedIssues="false"
resolveFromConfigFile="true"
autoloader="vendor/autoload.php"
findUnusedCode="false"
findUnusedBaselineEntry="true"
hideExternalErrors="true"
allowStringToStandInForClass="true"
>
<projectFiles>
<directory name="config" />
<directory name="public" />
<directory name="src" />
</projectFiles>

Expand Down
Empty file added public/.keep
Empty file.
51 changes: 0 additions & 51 deletions public/cas.php

This file was deleted.

32 changes: 0 additions & 32 deletions public/loggedIn.php

This file was deleted.

36 changes: 0 additions & 36 deletions public/loggedOut.php

This file was deleted.

Loading
Loading