Skip to content

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

@DimuthuKasunWP

Description

@DimuthuKasunWP

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions