Commit a713d4a
committed
feat: Add Key ID (kid) support to JWT assertions
Adds support for the 'kid' (Key ID) header parameter in JWT assertions,
allowing clients to specify the key identifier used for signing. This
improves key management and verification in systems consuming JWTs.
Updates `OAuth2::Strategy::Assertion#build_assertion` to accept
`kid` in `encoding_opts` and include it in the JWT header.
Also adds a test case to verify the functionality.1 parent a5de787 commit a713d4a
File tree
2 files changed
+23
-1
lines changed- lib/oauth2/strategy
- spec/oauth2/strategy
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
167 | 185 | | |
168 | 186 | | |
169 | 187 | | |
| |||
0 commit comments