flownative / flow-openidconnect-client

OpenID Connect Client SDK for Flow Framework
MIT License
6 stars 8 forks source link

Invalid JWT key leads to exception #51

Closed bwaidelich closed 1 year ago

bwaidelich commented 1 year ago

The method IdentityToken::getMatchingKeyForJws() that is triggered for every JWT validation throws a ServiceException if no matching key can be found. This is to be expected, eg. when keys have been rotated and the client still has an old JWT.

Instead the session should be ended, leading to a new authorization process.