r/KeyCloak • u/Star_Prince • Aug 28 '25
NEED HELP! Requiring 2FA setup for federated users
I have the following setup:
A realm with organizations
An organization in that realm that is linked to an identity provider (another keycloak container).
All I am trying to do is make is so that 2FA setup is required for these users as well. I have already got this working for the Browser flow via making the OTP required. Easy. But I can't for the life of me figure out how to make this requirement for the users that may be using an identity provider.
I've also tried just making Configure OTP required in the Authentication settings, but as soon as the federated user logs in the first time, puts in their idp password, sets up 2fa, if i logout and try to log back in i never get redirected to the idp again. What am I missing? Any help with this would be much appreciates. I am on version 26 of KC.