-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: refactor packages to use byu-sdk jwt verification (#158)
* feat!: refactor jwt and fastify packages to use byu-sdk jwt verification (#154) * chore(release): publish - @byu-oit/[email protected] - @byu-oit/[email protected] * fix: update dependencies (#155) * chore(release): publish - @byu-oit/[email protected] - @byu-oit/[email protected] * fix(fastify): flatten ByuJwtAuthenticator options (#156) * chore(release): publish - @byu-oit/[email protected] * fix: update dependencies (#157) * chore(release): publish - @byu-oit/[email protected] - @byu-oit/[email protected] --------- Co-authored-by: tylerablackham <[email protected]>
- Loading branch information
1 parent
8d39a95
commit b0567c0
Showing
25 changed files
with
2,471 additions
and
2,291 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,6 +3,47 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [0.1.7-beta.3](https://github.com/byu-oit/byu-jwt-nodejs/compare/@byu-oit/[email protected]...@byu-oit/[email protected]) (2023-09-25) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* update dependencies ([#157](https://github.com/byu-oit/byu-jwt-nodejs/issues/157)) ([1a3229c](https://github.com/byu-oit/byu-jwt-nodejs/commit/1a3229c1e8e6baaee03ee29946a7a1d29f5009c6)) | ||
|
||
|
||
|
||
|
||
|
||
## [0.1.7-beta.2](https://github.com/byu-oit/byu-jwt-nodejs/compare/@byu-oit/[email protected]...@byu-oit/[email protected]) (2023-09-18) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **fastify:** flatten ByuJwtAuthenticator options ([#156](https://github.com/byu-oit/byu-jwt-nodejs/issues/156)) ([b611bd0](https://github.com/byu-oit/byu-jwt-nodejs/commit/b611bd0d9584efce2e0ec19ac43bbf41a2174cea)) | ||
|
||
|
||
|
||
|
||
|
||
## [0.1.7-beta.1](https://github.com/byu-oit/byu-jwt-nodejs/compare/@byu-oit/[email protected]...@byu-oit/[email protected]) (2023-09-14) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* update dependencies ([#155](https://github.com/byu-oit/byu-jwt-nodejs/issues/155)) ([e20663e](https://github.com/byu-oit/byu-jwt-nodejs/commit/e20663ecfd7c6c42a09ee48fa272fee85e694cfb)) | ||
|
||
|
||
|
||
|
||
|
||
## [0.1.7-beta.0](https://github.com/byu-oit/byu-jwt-nodejs/compare/@byu-oit/[email protected]...@byu-oit/[email protected]) (2023-09-11) | ||
|
||
**Note:** Version bump only for package @byu-oit/fastify-jwt | ||
|
||
|
||
|
||
|
||
|
||
## [0.1.6](https://github.com/byu-oit/byu-jwt-nodejs/compare/@byu-oit/[email protected]...@byu-oit/[email protected]) (2023-07-10) | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@byu-oit/fastify-jwt", | ||
"version": "0.1.6", | ||
"version": "0.1.7-beta.3", | ||
"description": "A Fastify plugin for verifying callers JWTs with the BYU JWT package", | ||
"keywords": [], | ||
"author": "Spencer Tuft <[email protected]>", | ||
|
@@ -40,7 +40,9 @@ | |
}, | ||
"homepage": "https://github.com/byu-oit/byu-jwt-nodejs#readme", | ||
"dependencies": { | ||
"@byu-oit/jwt": "^0.0.6", | ||
"@byu-oit-sdk/jwt": "^0.1.0", | ||
"@byu-oit/jwt": "^0.0.7-beta.2", | ||
"@sinclair/typebox": "^0.31.2", | ||
"@types/node": "^18.16.2", | ||
"fastify": "^4.17.0", | ||
"fastify-plugin": "^4.5.0" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,39 @@ | ||
export const expiredJwt = 'eyJraWQiOiJwdWJsaWM6YXBpLXNhbmRib3gtMiIsIng1dCI6Img1bnFJM2dBQm4wM3p2dGFfQVBMRVdZYm1LMCIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwczovL2FwaS5ieXUuZWR1IiwiZXhwIjoxNjgyNjE1OTg0LCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL3N1YnNjcmliZXIiOiJCWVUvc3R1ZnQyIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbmlkIjoiZWEyZWRlOWEtMTQ1Zi00YTZjLWE1MzEtNTViYTA0ODQ3ZTRiIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbm5hbWUiOiJlYTJlZGU5YS0xNDVmLTRhNmMtYTUzMS01NWJhMDQ4NDdlNGIiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2FwcGxpY2F0aW9udGllciI6IlVubGltaXRlZCIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvYXBpY29udGV4dCI6Ii9lY2hvL3YxIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy92ZXJzaW9uIjoidjEiLCJodHRwOi8vd3NvMi5vcmcvY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5lZHUvY2xhaW1zL2NsaWVudF9uYW1lX3ByZWZpeCI6IiAiLCJodHRwOi8vYnl1LmVkdS9jbGFpbXMvY2xpZW50X25hbWVfc3VmZml4IjoiICIsImh0dHA6Ly9ieXUuZWR1L2NsYWltcy9jbGllbnRfY2xhaW1fc291cmNlIjoiQ0xJRU5UX1NVQlNDUklCRVIifQ.RoPdD6Inrdkovu0gQE1ozVf23HepuNLPqJJIJCnUe_0tY7r36ilKQmnER__bCNfHkGZUyVx0wjTinoPIG8ytIv-0pjP-LkR4dpZK9O3WMbb06qGyzWa0-OWOkb2iuH_qGcolM6brmco6eM8NROtn6jx3rVqbffJY1czpW5zJPzLo8YiiEDvTwk7efh99faVXQoRcUV0_LdFORwfgqKwBp8HmhXfZrMhCLQKbahTasIUUtpN8nyPk6BHb0GITXRjK4WQ5eHFf3CDRuGLVVQeTV6dbvIpa9jrzcKGtqkCDbJ-d9uxoPQ7OvLdouQ1D3oi2zj4Qalgs9ydKX3vpO4-4etm5T18qkJ9WlDe_Qra6hiD0CS0zT2umXh3MVFeU9qIpDNwBXRmXXMDbZTvQGWeWB14tK6x24gj-nNkOz_0JlwbykDN11mgsvCxDSWiSBBtYHndyO9B_YDKpLntP1ZafAIVLZtT9QYSljNKps1iIkotC7CG7FbMl9cr34yWuU7T4Sgn-_U1OE3DY6yojiDDtPqnkmTeTMWqmdqC2-ajqJ3JtQ1PFNdKWM5LIYbgmOXHsQB6DuaPIhwQlV0-reNX2_M9RRrNhklOhlUqpBz_A56ZKA5Su990YvDS6DcnW9wMERkxNDcW-tqGltxUwiN3PeCEhim5_ndul66DpBXndpSY' | ||
|
||
export const decodedJwt = { | ||
header: { | ||
kid: 'public:api-sandbox-2', | ||
x5t: 'h5nqI3gABn03zvta_APLEWYbmK0', | ||
alg: 'RS256' | ||
}, | ||
payload: { | ||
apiContext: '/echo/v1', | ||
application: { | ||
id: 'ea2ede9a-145f-4a6c-a531-55ba04847e4b', | ||
name: 'ea2ede9a-145f-4a6c-a531-55ba04847e4b', | ||
tier: 'Unlimited' | ||
}, | ||
aud: 'invalid aud', | ||
byuId: '750717073', | ||
clientId: 'ea2ede9a-145f-4a6c-a531-55ba04847e4b', | ||
endUser: '[email protected]', | ||
endUserTenantId: '-1234', | ||
exp: 1682615984, | ||
iss: 'https://api.byu.edu', | ||
keyType: 'SANDBOX', | ||
netId: 'stuft2', | ||
personId: '299276782', | ||
preferredFirstName: 'Spencer', | ||
prefix: ' ', | ||
restOfName: 'Spencer James', | ||
sortName: 'Tuft, Spencer James', | ||
subscriber: 'BYU/stuft2', | ||
suffix: ' ', | ||
surname: 'Tuft', | ||
surnamePosition: 'L', | ||
tier: 'Unlimited', | ||
userType: 'APPLICATION', | ||
version: 'v1' | ||
}, | ||
signature: '' | ||
} |
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 |
---|---|---|
|
@@ -3,6 +3,36 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [0.0.7-beta.2](https://github.com/byu-oit/byu-jwt-nodejs/compare/@byu-oit/[email protected]...@byu-oit/[email protected]) (2023-09-25) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* update dependencies ([#157](https://github.com/byu-oit/byu-jwt-nodejs/issues/157)) ([1a3229c](https://github.com/byu-oit/byu-jwt-nodejs/commit/1a3229c1e8e6baaee03ee29946a7a1d29f5009c6)) | ||
|
||
|
||
|
||
|
||
|
||
## [0.0.7-beta.1](https://github.com/byu-oit/byu-jwt-nodejs/compare/@byu-oit/[email protected]...@byu-oit/[email protected]) (2023-09-14) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* update dependencies ([#155](https://github.com/byu-oit/byu-jwt-nodejs/issues/155)) ([e20663e](https://github.com/byu-oit/byu-jwt-nodejs/commit/e20663ecfd7c6c42a09ee48fa272fee85e694cfb)) | ||
|
||
|
||
|
||
|
||
|
||
## [0.0.7-beta.0](https://github.com/byu-oit/byu-jwt-nodejs/compare/@byu-oit/[email protected]...@byu-oit/[email protected]) (2023-09-11) | ||
|
||
**Note:** Version bump only for package @byu-oit/jwt | ||
|
||
|
||
|
||
|
||
|
||
## [0.0.6](https://github.com/byu-oit/byu-jwt-nodejs/compare/@byu-oit/[email protected]...@byu-oit/[email protected]) (2023-07-10) | ||
|
||
|
||
|
Oops, something went wrong.