-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FI-2910: Host JWKS for Client Assertion #515
Conversation
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Co-authored-by: Stephen MacVicar <Jammjammjamm@users.noreply.github.com>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Co-authored-by: Stephen MacVicar <Jammjammjamm@users.noreply.github.com>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
lib/inferno/dsl/auth_info.rb
Outdated
@@ -270,7 +270,8 @@ def auth_jwt_header | |||
{ | |||
'alg' => encryption_algorithm, | |||
'kid' => private_key['kid'], | |||
'typ' => 'JWT' | |||
'typ' => 'JWT', | |||
'jku' => "#{Inferno::Application['base_url']}/jwks.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add the jwks url as an inferno application property so that no one ever has to build it, like how we do for base url: https://github.com/inferno-framework/inferno-core/blob/main/lib/inferno/config/application.rb#L23
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
…rno-core into fi-2910-host-jwks
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
…rno-core into fi-2910-host-jwks
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #515 +/- ##
==========================================
+ Coverage 79.64% 79.69% +0.04%
==========================================
Files 243 243
Lines 12174 12178 +4
Branches 1204 1205 +1
==========================================
+ Hits 9696 9705 +9
+ Misses 1813 1808 -5
Partials 665 665
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Summary
This branch hosts the JWKS used for signing client assertions in core, and populate the
jku
field in the client assertion with the JWKS url.Testing Guidance