1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

OIDC Userinfo: Fixed issues with validation logic from changes

Also updated test to suit validation changes
This commit is contained in:
Dan Brown
2024-04-19 16:43:51 +01:00
parent 0958909cd9
commit 8b14a701a4
5 changed files with 9 additions and 9 deletions

View File

@@ -113,7 +113,7 @@ class OidcIdTokenTest extends TestCase
// 2. aud claim present
['Missing token audience value', ['aud' => null]],
// 2. aud claim validates all values against those expected (Only expect single)
['Token audience value has 2 values, Expected 1', ['aud' => ['abc', 'def']]],
['Token audience value has 2 values, Expected 1', ['aud' => ['xxyyzz.aaa.bbccdd.123', 'def']]],
// 2. aud claim matches client id
['Token audience value did not match the expected client_id', ['aud' => 'xxyyzz.aaa.bbccdd.456']],
// 4. azp claim matches client id if present