Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/composer/production-dependencie…
Browse files Browse the repository at this point in the history
…s-b067fb6425
  • Loading branch information
cicnavi committed Jan 24, 2025
2 parents 675b62d + 6d0fcec commit a9529ac
Show file tree
Hide file tree
Showing 60 changed files with 3,817 additions and 782 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
[![Build Status](https://github.com/simplesamlphp/openid/actions/workflows/php.yml/badge.svg)](https://github.com/simplesamlphp/openid/actions/workflows/php.yml)
[![Coverage Status](https://codecov.io/gh/simplesamlphp/openid/branch/master/graph/badge.svg)](https://app.codecov.io/gh/simplesamlphp/openid)

WARNING: this library is under heavy development and should not be used in production!
The library is under development, and you can expect braking changes along the way.

This library provides some common tools that you might find useful when working with OpenID family of specifications.
The library provides some common tools that you might find useful when working with OpenID family of specifications.

## Installation

Expand All @@ -15,7 +15,7 @@ Library can be installed by using Composer:
composer require simplesamlphp/openid
```

## OpenID Federation
## OpenID Federation (draft 41)

The initial functionality of the library revolves around the OpenID Federation specification. To use it, create an
instance of the class `\SimpleSAML\OpenID\Federation`
Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
"web-token/jwt-library": "^3.4 || ^4.0"
},
"require-dev": {
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^10",
"rector/rector": "^2.0",
"simplesamlphp/simplesamlphp-test-framework": "^1",
"squizlabs/php_codesniffer": "^3",
"vimeo/psalm": "^5",
"rector/rector": "^1 || ^2",
"simplesamlphp/simplesamlphp-test-framework": "^1"
"vimeo/psalm": "^5"
},
"config": {
"sort-packages": true,
Expand All @@ -50,6 +51,7 @@
"pre-commit": [
"vendor/bin/phpcs -p",
"vendor/bin/psalm --no-cache",
"vendor/bin/rector --dry-run",
"vendor/bin/phpunit --no-coverage"
]
}
Expand Down
6 changes: 6 additions & 0 deletions phpstan-dev.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

parameters:
level: 0
paths:
- tests
tmpDir: build/phpstan
6 changes: 6 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

parameters:
level: 6
paths:
- src
tmpDir: build/phpstan
17 changes: 17 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
// uncomment to reach your current PHP version
->withPhpSets()
->withTypeCoverageLevel(1000)
->withDeadCodeLevel(1000)
->withCodeQualityLevel(1000)
;
8 changes: 5 additions & 3 deletions src/Algorithms/SignatureAlgorithmBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace SimpleSAML\OpenID\Algorithms;

use Jose\Component\Signature\Algorithm\SignatureAlgorithm;

class SignatureAlgorithmBag
{
/** @var \SimpleSAML\OpenID\Algorithms\SignatureAlgorithmEnum[] */
Expand Down Expand Up @@ -33,9 +35,9 @@ public function getAll(): array
public function getAllInstances(): array
{
return array_map(
function (SignatureAlgorithmEnum $signatureAlgorithmEnum) {
return $signatureAlgorithmEnum->instance();
},
fn(
SignatureAlgorithmEnum $signatureAlgorithmEnum,
): SignatureAlgorithm => $signatureAlgorithmEnum->instance(),
$this->getAll(),
);
}
Expand Down
1 change: 1 addition & 0 deletions src/Codebooks/ContentTypesEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@

enum ContentTypesEnum: string
{
case ApplicationJwt = 'application/jwt';
case ApplicationEntityStatementJwt = 'application/entity-statement+jwt';
}
Loading

0 comments on commit a9529ac

Please sign in to comment.