feat(jans-auth-server): improve client assertion creation code (ClientAuthnRequest) #1182
Labels
comp-jans-auth-server
Component affected by issue or PR
kind-enhancement
Issue or PR is an enhancement to an existing functionality
kind-feature
Issue or PR is a new feature request
Milestone
Description
HS256 is fallback algorithm which assumes that shared key is used instead of asymetric keys. Code can be better at this place and maybe we should aggresively fail:
if asymetric key is set with alg HS*
in opposite case when shared key is set with alg that is not HS* (RS*, PS* etc.)
Indeed fallback to HS with asymetric key does not make sense (which is the case currently).
Inspiration is taken from GluuFederation/oxAuth#1661
The text was updated successfully, but these errors were encountered: