Skip to content

Commit 483d954

Browse files
authored
Add support for HTTP POST method on authorization endpoint (#242)
* Add support for HTTP POST method on authorization endpoint * Update request rules so to check request params based on HTTP methods * Change namespace for request rules * Get rid of GetClientFromRequestTrait --------- Co-authored-by: Marko Ivančić <[email protected]>
1 parent 00ef6b9 commit 483d954

File tree

87 files changed

+857
-734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+857
-734
lines changed

UPGRADE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- `consent` and `preprodwarning` are two authprocs that redirect for user interaction and are now supported
2727
- Uses SSP's ProcessingChain class for closer alignment with SAML IdP configuration.
2828
- Allows additional configuration of authprocs in the main `config.php` under key `authproc.oidc`
29+
- Authorization endpoint now also supports sending parameters using HTTP POST method, in addition to GET.
2930

3031
## New configuration options
3132

@@ -73,6 +74,8 @@ has been refactored:
7374
- upgraded to v5 of lcobucci/jwt https://github.com/lcobucci/jwt
7475
- upgraded to v3 of laminas/laminas-diactoros https://github.com/laminas/laminas-diactoros
7576
- SimpleSAMLphp version used during development was bumped to v2.2
77+
- In Authorization Code Flow, a new validation was added which checks for 'openid' value in 'scope' parameter. Up to
78+
now, 'openid' value was dynamically added if not present. In Implicit Code Flow this validation was already present.
7679

7780
# Version 4 to 5
7881

routing/routes/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
declare(strict_types=1);
88

9-
use SimpleSAML\Module\oidc\Codebooks\HttpMethodsEnum;
109
use SimpleSAML\Module\oidc\Codebooks\RoutesEnum;
1110
use SimpleSAML\Module\oidc\Controller\AccessTokenController;
1211
use SimpleSAML\Module\oidc\Controller\AuthorizationController;
@@ -15,6 +14,7 @@
1514
use SimpleSAML\Module\oidc\Controller\Federation\EntityStatementController;
1615
use SimpleSAML\Module\oidc\Controller\JwksController;
1716
use SimpleSAML\Module\oidc\Controller\UserInfoController;
17+
use SimpleSAML\OpenID\Codebooks\HttpMethodsEnum;
1818
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1919

2020
/** @psalm-suppress InvalidArgument */

routing/services/services.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ services:
3636
resource: '../../src/Bridges/*'
3737

3838
SimpleSAML\Module\oidc\ModuleConfig: ~
39+
SimpleSAML\Module\oidc\Helpers: ~
3940
SimpleSAML\Module\oidc\Forms\Controls\CsrfProtection: ~
40-
SimpleSAML\Module\oidc\Utils\Checker\RequestRulesManager:
41+
SimpleSAML\Module\oidc\Server\RequestRules\RequestRulesManager:
4142
factory: ['@SimpleSAML\Module\oidc\Factories\RequestRulesManagerFactory', 'build']
4243
# Grants
4344
SimpleSAML\Module\oidc\Server\Grants\AuthCodeGrant:

src/Codebooks/ClaimNamesEnum.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Codebooks/ClaimValues/ClientRegistrationTypesEnum.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/Codebooks/ClaimValues/PublicKeyUseEnum.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/Codebooks/ClaimValues/TypeEnum.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/Codebooks/EntityTypeEnum.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Codebooks/ErrorsEnum.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/Codebooks/HttpHeaderValues/ContentTypeEnum.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)