Commit 582e29e
Loosen isJWT check. (#93)
Previously added logic for checking if a token is JWT is too strict. According
to spec: https://tools.ietf.org/html/rfc7519#section-5.1 `typ` header isn't even
required, and its value may not be "JWT". `alg` on the other hand is more
commonly used. So checking its existence is much more reliable.1 parent 8f8e4c6 commit 582e29e
File tree
2 files changed
+4
-3
lines changed- restdocs-api-spec/src
- main/kotlin/com/epages/restdocs/apispec
- test/kotlin/com/epages/restdocs/apispec
2 files changed
+4
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
0 commit comments