Skip to content
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

ID token validation faling if the private key size is less than 2048 #274

Open
DimuthuKasunWP opened this issue Feb 14, 2025 · 2 comments
Open
Labels
bug Something isn't working

Comments

@DimuthuKasunWP
Copy link

DimuthuKasunWP commented Feb 14, 2025

Hi Team,

WSO2 Identity Server uses the Asgardeo React SDK for authenticating the Console & My Account.

After WSO2 Identity Server migrations to latest versions of identity server (v7), if the private key size of tenanted keystore is less than 2048, we cannot login into the Identity Server Console application or any react sample application because is causing ID token validation failure from the SDK level.

⚠️ We need to add the following TOML configuration in the Identity Server in-order to allow the keystores with the lesser key size.

[system.parameter]
allow_weak_rsa_signer_key=true

When troubleshooting further with sample react application, we are getting this error.

Image

It seems the error object doesn't have information to print here 👇 .

⭐️ Workaround

In the console application, this issue can be skipped with the below configuration .
But since this disabled the signature validation, we need to check if there's any other option we can take.

[console]
idp_configs.validateIDToken = false

Product : 7.0.0

@DimuthuKasunWP DimuthuKasunWP added the bug Something isn't working label Feb 14, 2025
@pavinduLakshan
Copy link
Contributor

This seems to be expected according to panva/jose#210

@brionmario
Copy link
Member

brionmario commented Feb 14, 2025

This seems to be expected according to panva/jose#210

Since they require a minimum key length, the ideal solution here would be to migrate the keystore rather than disabling the id token signature validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants