Repository navigation
Keycloak Console Page Fails to Load for "master" Realm, but API Login Works #37163
Closed
emilio-ferrer
started this conversation in
Archive
Replies: 1 comment
|
After further investigation, I found that the error was caused by an incorrect value in the component_config table. Specifically, the provider_id for the Keycloak AES encryption was mistakenly updated with an invalid value. The correct provider_id should have been aes-generated, but it was replaced by an invalid value, causing the encryption key error. Once I reverted the change and restored the correct value for the provider_id, the issue was resolved, and the Keycloak console page now loads without errors. Thanks for read! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I'm encountering an issue with Keycloak where the console page for the "master" realm fails to load, but I can log in via the API using a user from a different realm. The login works, and I successfully obtain the access and refresh tokens, but the Keycloak console shows the following error message:
`We are sorry...
Unexpected error when handling authentication request to identity provider.`
In the logs, I see the following error related to the LOGIN_ERROR:
[org.keycloak.events] (executor-thread-16) type="LOGIN_ERROR" Bad size for Encryption key: javax.crypto.spec.SecretKeySpec@49eed. Valid sizes are 16, 24, 32. [org.keycloak.events] (executor-thread-16) type="LOGIN_ERROR", realmId="xxxxx", realmName="master"Keycloak version: 26.0.1
Database: Aurora Postgresql 15
Encryption settings:
KC_ENCRYPTION_KEY=93df9903332a73c52ee569512e28cef07e435b745d0ae1d2133f86213b2c3525I've verified that the encryption key size should be valid, but the issue persists when accessing the console. The login via API works without any issues.
Has anyone encountered a similar problem or have suggestions on how to resolve this issue? Any help would be greatly appreciated!
All reactions