XenitAB/go-oidc-middleware

use algorithm to get key from keyhandler

gitu opened this issue · 1 comments

gitu commented

we have a case where we use two equal keys that only differ based on algorithm but have the same kid in jwk

according to rfc7517
https://www.rfc-editor.org/rfc/rfc7517#section-4.5

so getting the key as in:

key, err := h.keyHandler.getKey(ctx, keyID)

should include the algorithm if multiple keys match by id

@gitu this has now been released in v0.0.39. Thank you for your contribution! 🥇