HASKI-RAK / HASKI-Backend

This is the Backend System for our HASKI project.
GNU Lesser General Public License v2.1
4 stars 1 forks source link

JWKS URL fetch if key invalid #45

Open theUpsider opened 1 year ago

theUpsider commented 1 year ago

Describe the feature to be developed

The system should provide a way to check a JSON Web Key Set (JWKS) at a given URL instead of relying on a hardcoded configuration. The context here is the decoding of an id_token. If the system doesn't find an appropriate decryption key (hmac_key) in the current platform's key set, it should try to retrieve new keys from a JWKS URL.

Describe the Impact on the System

This feature will primarily affect the OIDCLoginFlask and JWTKeyManagement and the platform data structure. It may require changes to the way we handle keys, and may need a new method for fetching and updating keys from a JWKS URL.

Definition of Done