Skip to content

Commit ccb7212

Browse files
committed
Merge branch 'master' into vcdm2
2 parents 811d445 + 03410bf commit ccb7212

6 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
path: '**/*.md'
3434
check_filenames: true
3535
ignore_words_list: tekst
36+
skip: './.git, ./specifications, ./vendor'
3637

3738
build:
3839
name: Build documentation

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898

9999
- name: Save coverage data
100100
if: ${{ matrix.php-versions == '8.5' && matrix.jwt-version == '^4.0.2' }}
101-
uses: actions/upload-artifact@v6
101+
uses: actions/upload-artifact@v7
102102
with:
103103
name: coverage-data
104104
path: ${{ github.workspace }}/build
@@ -266,7 +266,7 @@ jobs:
266266
steps:
267267
- uses: actions/checkout@v6
268268

269-
- uses: actions/download-artifact@v7
269+
- uses: actions/download-artifact@v8
270270
with:
271271
name: coverage-data
272272
path: ${{ github.workspace }}/build
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SimpleSAML\OpenID\Codebooks;
6+
7+
enum AccessTokenTypesEnum: string
8+
{
9+
// https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-types
10+
case Bearer = 'Bearer';
11+
case N_A = 'N_A';
12+
case PoP = 'PoP';
13+
case DPoP = 'DPoP';
14+
}

src/Codebooks/ClientAssertionTypesEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66

77
enum ClientAssertionTypesEnum: string
88
{
9+
// TODO mivanci rename to JwtBearer in v1
910
case JwtBaerer = 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer';
1011
}

src/Codebooks/ClientAuthenticationMethodsEnum.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,16 @@ enum ClientAuthenticationMethodsEnum: string
1515
case PrivateKeyJwt = 'private_key_jwt';
1616

1717
case None = 'none';
18+
19+
20+
public function isNone(): bool
21+
{
22+
return $this === ClientAuthenticationMethodsEnum::None;
23+
}
24+
25+
26+
public function isNotNone(): bool
27+
{
28+
return !$this->isNone();
29+
}
1830
}

src/Codebooks/ParamsEnum.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ enum ParamsEnum: string
8181

8282
case TargetLinkUri = 'target_link_uri';
8383

84+
case Token = 'token';
85+
86+
case TokenTypeHint = 'token_type_hint';
87+
8488
case TokenType = 'token_type';
8589

8690
case TrustMarked = 'trust_marked';

0 commit comments

Comments
 (0)