Skip to content

Commit 9587552

Browse files
committed
📌 Release prep
1 parent 93af6a6 commit 9587552

5 files changed

Lines changed: 171 additions & 23 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,14 @@ Please file a bug if you notice a violation of semantic versioning.
2828

2929
### Fixed
3030

31-
- Restored JRuby 9.2 and 9.3 CI by using OpenSSL APIs available on older JRuby
32-
releases for EC key setup and only running ECDSA examples when the runtime
33-
exposes the primitives required by the `jwt` gem.
34-
3531
### Security
3632

3733
## [0.1.1] - 2026-06-16
3834

3935
- TAG: [v0.1.1][0.1.1t]
40-
- COVERAGE: 97.01% -- 65/67 lines in 5 files
41-
- BRANCH COVERAGE: 85.71% -- 12/14 branches in 5 files
42-
- 11.76% documented
36+
- COVERAGE: 96.47% -- 82/85 lines in 5 files
37+
- BRANCH COVERAGE: 90.91% -- 20/22 branches in 5 files
38+
- 10.53% documented
4339

4440
### Added
4541

docs/OmniAuth/Strategies/JWT.html

Lines changed: 146 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,52 @@ <h2>
176176

177177

178178

179+
<span class="summary_desc"><div class='inline'>
180+
</div></span>
181+
182+
</li>
183+
184+
185+
<li class="public ">
186+
<span class="summary_signature">
187+
188+
<a href="#ec_key-instance_method" title="#ec_key (instance method)">#<strong>ec_key</strong>(secret) &#x21d2; Object </a>
189+
190+
191+
192+
</span>
193+
194+
195+
196+
197+
198+
199+
200+
201+
202+
<span class="summary_desc"><div class='inline'>
203+
</div></span>
204+
205+
</li>
206+
207+
208+
<li class="public ">
209+
<span class="summary_signature">
210+
211+
<a href="#ec_public_key-instance_method" title="#ec_public_key (instance method)">#<strong>ec_public_key</strong>(key) &#x21d2; Object </a>
212+
213+
214+
215+
</span>
216+
217+
218+
219+
220+
221+
222+
223+
224+
179225
<span class="summary_desc"><div class='inline'>
180226
</div></span>
181227

@@ -231,16 +277,16 @@ <h3 class="signature first" id="callback_phase-instance_method">
231277
<pre class="lines">
232278

233279

234-
73
235-
74
236-
75
237-
76
238-
77
239-
78
240-
79</pre>
280+
96
281+
97
282+
98
283+
99
284+
100
285+
101
286+
102</pre>
241287
</td>
242288
<td>
243-
<pre class="code"><span class="info file"># File 'lib/omniauth/strategies/jwt.rb', line 73</span>
289+
<pre class="code"><span class="info file"># File 'lib/omniauth/strategies/jwt.rb', line 96</span>
244290

245291
<span class='kw'>def</span> <span class='id identifier rubyid_callback_phase'>callback_phase</span>
246292
<span class='kw'>super</span>
@@ -346,7 +392,7 @@ <h3 class="signature " id="decoded-instance_method">
346392
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>RS256</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>RS384</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>RS512</span><span class='tstring_end'>&quot;</span></span>
347393
<span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>RSA</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_secret'>secret</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span>
348394
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ES256</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ES384</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ES512</span><span class='tstring_end'>&quot;</span></span>
349-
<span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>EC</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_secret'>secret</span><span class='rparen'>)</span>
395+
<span class='id identifier rubyid_ec_key'>ec_key</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_secret'>secret</span><span class='rparen'>)</span>
350396
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>HS256</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>HS384</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>HS512</span><span class='tstring_end'>&quot;</span></span>
351397
<span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_secret'>secret</span>
352398
<span class='kw'>else</span>
@@ -385,6 +431,96 @@ <h3 class="signature " id="decoded-instance_method">
385431
</td>
386432
</tr>
387433
</table>
434+
</div>
435+
436+
<div class="method_details ">
437+
<h3 class="signature " id="ec_key-instance_method">
438+
439+
#<strong>ec_key</strong>(secret) &#x21d2; <tt>Object</tt>
440+
441+
442+
443+
444+
445+
</h3><table class="source_code">
446+
<tr>
447+
<td>
448+
<pre class="lines">
449+
450+
451+
73
452+
74
453+
75
454+
76
455+
77
456+
78
457+
79
458+
80
459+
81
460+
82
461+
83</pre>
462+
</td>
463+
<td>
464+
<pre class="code"><span class="info file"># File 'lib/omniauth/strategies/jwt.rb', line 73</span>
465+
466+
<span class='kw'>def</span> <span class='id identifier rubyid_ec_key'>ec_key</span><span class='lparen'>(</span><span class='id identifier rubyid_secret'>secret</span><span class='rparen'>)</span>
467+
<span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='kw'>if</span> <span class='id identifier rubyid_secret'>secret</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>EC</span><span class='rparen'>)</span>
468+
<span class='id identifier rubyid_secret'>secret</span>
469+
<span class='kw'>elsif</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:read</span><span class='rparen'>)</span>
470+
<span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_secret'>secret</span><span class='rparen'>)</span>
471+
<span class='kw'>else</span>
472+
<span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>EC</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_secret'>secret</span><span class='rparen'>)</span>
473+
<span class='kw'>end</span>
474+
475+
<span class='id identifier rubyid_ec_public_key'>ec_public_key</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
476+
<span class='kw'>end</span></pre>
477+
</td>
478+
</tr>
479+
</table>
480+
</div>
481+
482+
<div class="method_details ">
483+
<h3 class="signature " id="ec_public_key-instance_method">
484+
485+
#<strong>ec_public_key</strong>(key) &#x21d2; <tt>Object</tt>
486+
487+
488+
489+
490+
491+
</h3><table class="source_code">
492+
<tr>
493+
<td>
494+
<pre class="lines">
495+
496+
497+
85
498+
86
499+
87
500+
88
501+
89
502+
90
503+
91
504+
92
505+
93
506+
94</pre>
507+
</td>
508+
<td>
509+
<pre class="code"><span class="info file"># File 'lib/omniauth/strategies/jwt.rb', line 85</span>
510+
511+
<span class='kw'>def</span> <span class='id identifier rubyid_ec_public_key'>ec_public_key</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
512+
<span class='kw'>return</span> <span class='id identifier rubyid_key'>key</span> <span class='kw'>unless</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:private?</span><span class='rparen'>)</span>
513+
<span class='kw'>return</span> <span class='id identifier rubyid_key'>key</span> <span class='kw'>unless</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_private?'>private?</span>
514+
515+
<span class='id identifier rubyid_public_key'>public_key</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>EC</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_group'>group</span><span class='rparen'>)</span>
516+
<span class='id identifier rubyid_public_key'>public_key</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span> <span class='op'>=</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span>
517+
<span class='id identifier rubyid_public_key'>public_key</span>
518+
<span class='kw'>rescue</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>PKeyError</span>
519+
<span class='id identifier rubyid_key'>key</span>
520+
<span class='kw'>end</span></pre>
521+
</td>
522+
</tr>
523+
</table>
388524
</div>
389525

390526
<div class="method_details ">
@@ -422,7 +558,7 @@ <h3 class="signature " id="request_phase-instance_method">
422558
</div>
423559

424560
<div id="footer">
425-
Generated on Mon Jun 15 16:45:22 2026 by
561+
Generated on Tue Jun 16 06:56:46 2026 by
426562
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
427563
0.9.44 (ruby-4.0.5).
428564
</div>

docs/OmniAuth/Strategies/Jwt.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@
122122
<h2>Method Summary</h2>
123123

124124
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="JWT.html" title="OmniAuth::Strategies::JWT (class)">JWT</a></span></h3>
125-
<p class="inherited"><span class='object_link'><a href="JWT.html#callback_phase-instance_method" title="OmniAuth::Strategies::JWT#callback_phase (method)">#callback_phase</a></span>, <span class='object_link'><a href="JWT.html#decoded-instance_method" title="OmniAuth::Strategies::JWT#decoded (method)">#decoded</a></span>, <span class='object_link'><a href="JWT.html#request_phase-instance_method" title="OmniAuth::Strategies::JWT#request_phase (method)">#request_phase</a></span></p>
125+
<p class="inherited"><span class='object_link'><a href="JWT.html#callback_phase-instance_method" title="OmniAuth::Strategies::JWT#callback_phase (method)">#callback_phase</a></span>, <span class='object_link'><a href="JWT.html#decoded-instance_method" title="OmniAuth::Strategies::JWT#decoded (method)">#decoded</a></span>, <span class='object_link'><a href="JWT.html#ec_key-instance_method" title="OmniAuth::Strategies::JWT#ec_key (method)">#ec_key</a></span>, <span class='object_link'><a href="JWT.html#ec_public_key-instance_method" title="OmniAuth::Strategies::JWT#ec_public_key (method)">#ec_public_key</a></span>, <span class='object_link'><a href="JWT.html#request_phase-instance_method" title="OmniAuth::Strategies::JWT#request_phase (method)">#request_phase</a></span></p>
126126

127127

128128

129129
</div>
130130

131131
<div id="footer">
132-
Generated on Mon Jun 15 16:45:22 2026 by
132+
Generated on Tue Jun 16 06:56:46 2026 by
133133
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
134134
0.9.44 (ruby-4.0.5).
135135
</div>

docs/file.CHANGELOG.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ <h2 id="011---2026-06-16">
9090
<ul>
9191
<li>TAG: <a href="https://github.com/omniauth/omniauth-jwt2/releases/tag/v0.1.1">v0.1.1</a>
9292
</li>
93-
<li>COVERAGE: 97.01% – 65/67 lines in 5 files</li>
94-
<li>BRANCH COVERAGE: 85.71% – 12/14 branches in 5 files</li>
95-
<li>11.76% documented</li>
93+
<li>COVERAGE: 96.47% – 82/85 lines in 5 files</li>
94+
<li>BRANCH COVERAGE: 90.91% – 20/22 branches in 5 files</li>
95+
<li>10.53% documented</li>
9696
</ul>
9797

9898
<h3 id="added-1">Added</h3>
@@ -124,7 +124,7 @@ <h3 id="removed-1">Removed</h3>
124124
</div></div>
125125

126126
<div id="footer">
127-
Generated on Tue Jun 16 05:40:52 2026 by
127+
Generated on Tue Jun 16 06:56:46 2026 by
128128
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129129
0.9.44 (ruby-4.0.5).
130130
</div>

docs/method_list.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ <h1 id="full_list_header">Method List</h1>
6363
</li>
6464

6565

66+
<li class="odd ">
67+
<div class="item">
68+
<span class='object_link'><a href="OmniAuth/Strategies/JWT.html#ec_key-instance_method" title="OmniAuth::Strategies::JWT#ec_key (method)">#ec_key</a></span>
69+
<small>OmniAuth::Strategies::JWT</small>
70+
</div>
71+
</li>
72+
73+
74+
<li class="even ">
75+
<div class="item">
76+
<span class='object_link'><a href="OmniAuth/Strategies/JWT.html#ec_public_key-instance_method" title="OmniAuth::Strategies::JWT#ec_public_key (method)">#ec_public_key</a></span>
77+
<small>OmniAuth::Strategies::JWT</small>
78+
</div>
79+
</li>
80+
81+
6682
<li class="odd ">
6783
<div class="item">
6884
<span class='object_link'><a href="OmniAuth/Strategies/JWT.html#request_phase-instance_method" title="OmniAuth::Strategies::JWT#request_phase (method)">#request_phase</a></span>

0 commit comments

Comments
 (0)