Need help with custom redirect URI for Keycloak's client in realm

Greetings Community,

I am seeking guidance regarding an issue with Keycloak. Specifically, I have set up a realm named Demo and using the account-console client for user authentication and login redirection. I have also implemented a custom SPI to handle the redirection and authentication process. However, when I attempt to use a custom redirect URI instead of the default one for the account-console client, it does not work.

Could anyone provide insights on how to resolve this issue? Your assistance will be greatly appreciated.

Default Setting for redirect URI in below screenshot in this case every thing works fine


but when I put my custom redirect URI it show error setting and error screenshot attached below.

Error :
image

custom URI is : http://localhost:8090/