-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1039 from bitwiseman/task/jwt
Allow for time skew in JWT authentication
- Loading branch information
Showing
3 changed files
with
89 additions
and
4 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
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
37 changes: 37 additions & 0 deletions
37
...b/extras/authorization/JWTTokenProviderTest/wiremock/testIssuedAtSkew/mappings/app-2.json
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"id": "70456278-27d2-470a-bdfb-0edb4ac61781", | ||
"name": "app", | ||
"request": { | ||
"url": "/app", | ||
"method": "GET", | ||
"headers": { | ||
"Authorization": { | ||
"matches": "^Bearer (?<JWTHeader>ey\\S*)\\.(?<JWTPayload>\\S*)\\.(?<JWTSignature>\\S*)$" | ||
}, | ||
"Accept": { | ||
"equalTo": "application/vnd.github.machine-man-preview+json" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 401, | ||
"body": "{\"message\":\"'Issued at' claim ('iat') must be an Integer representing the time that the assertion was issued\",\"documentation_url\":\"https://docs.github.com/rest\"}", | ||
"headers": { | ||
"Server": "GitHub.com", | ||
"Date": "Thu, 25 Feb 2021 18:29:11 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"X-GitHub-Media-Type": "github.v3; param=machine-man-preview; format=json", | ||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", | ||
"X-Frame-Options": "deny", | ||
"X-Content-Type-Options": "nosniff", | ||
"X-XSS-Protection": "1; mode=block", | ||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", | ||
"Content-Security-Policy": "default-src 'none'", | ||
"Vary": "Accept-Encoding, Accept, X-Requested-With", | ||
"X-GitHub-Request-Id": "F443:2D43:8AECD5:A2A02D:6037EC76" | ||
} | ||
}, | ||
"uuid": "70456278-27d2-470a-bdfb-0edb4ac61781", | ||
"persistent": true, | ||
"insertionIndex": 2 | ||
} |