-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use TLS server validation instead of jwt signature validations
BREAKING CHANGE: Use the TLS server validation in `processAuthorizationCodeOpenIDResponse` to validate the issuer instead of checking the ID Token's signature. The function's `options` argument was removed. BREAKING CHANGE: Use the TLS server validation in `processDeviceCodeResponse` to validate the issuer instead of checking the optional ID Token's signature. The function's `options` argument was removed. BREAKING CHANGE: Use the TLS server validation in `processIntrospectionResponse` to validate the issuer instead of checking the optional JWT Introspection Response signature. The function's `options` argument was removed. BREAKING CHANGE: Use the TLS server validation in `processRefreshTokenResponse` to validate the issuer instead of checking the optional ID Token's signature. The function's `options` argument was removed. BREAKING CHANGE: Use the TLS server validation in `processUserInfoResponse` to validate the issuer instead of checking the optional JWT UserInfo Response signature. The function's `options` argument was removed.
- Loading branch information
Showing
26 changed files
with
64 additions
and
669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { test, red, modules } from '../runner.js' | ||
import { test, skipped, modules } from '../runner.js' | ||
|
||
for (const module of modules('invalid-signature')) { | ||
test.serial(red, module, 'JWT signature verification failed') | ||
test.serial(skipped, module) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { test, red, modules } from '../runner.js' | ||
import { test, green, modules } from '../runner.js' | ||
|
||
for (const module of modules('idtoken-sig-none')) { | ||
test.serial(red, module, 'unsupported JWS "alg" identifier', 'UnsupportedOperationError') | ||
test.serial(green, module) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { test, red, modules } from '../runner.js' | ||
import { test, skipped, modules } from '../runner.js' | ||
|
||
for (const module of modules('invalid-sig-es256')) { | ||
test.serial(red, module, 'JWT signature verification failed') | ||
test.serial(skipped, module) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { test, red, modules } from '../runner.js' | ||
import { test, skipped, modules } from '../runner.js' | ||
|
||
for (const module of modules('invalid-sig-hs256')) { | ||
test.serial(red, module, 'unsupported JWS "alg" identifier', 'UnsupportedOperationError') | ||
test.serial(skipped, module) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { test, red, modules } from '../runner.js' | ||
import { test, skipped, modules } from '../runner.js' | ||
|
||
for (const module of modules('invalid-sig-rs256')) { | ||
test.serial(red, module, 'JWT signature verification failed') | ||
test.serial(skipped, module) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import { test, red, modules } from '../runner.js' | ||
import { test, green, modules } from '../runner.js' | ||
|
||
for (const module of modules('kid-absent-multiple-jwks')) { | ||
test.serial( | ||
red, | ||
module, | ||
'error when selecting a JWT verification key, multiple applicable keys found, a "kid" JWT Header Parameter is required', | ||
) | ||
test.serial(green, module) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 0 additions & 60 deletions
60
docs/interfaces/ProcessAuthorizationCodeOpenIDResponseOptions.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.