Open ToniA opened 1 week ago
OK, I think I found it. The Organizations 'Invite member' action does not require that the 'Realm settings' -> 'Login' -> 'User registration' is enabled.
However, if the 'Enforce MFA' step is added into the registration flow, the realm-level 'User registration' must be enabled. It looks like the 'session' object doesn't carry the organizations info, and it causes the registration to fail here:
First of all, thank you for this excellent plugin for supporting user-selectable MFA method. This works beautifully in the 'Browser Flow'.
However, I'm now trying to add it into 'Registration Flow', to support the new 'Organizations' feature invite link, and setting up OTP in the registration step. With exactly the same flow setup (I'm using mrparkers/keycloak with Terraform to script it), I get the registration flow to present the OTP selection dialog ('Please choose an authentication method as a second factor.'). But after the selection, I get an error message 'We are sorry... Registration not allowed'.
Keycloak log says:
This is my 'Registration Flow':
This very simple 'Registration Flow' with REQUIRED Authenticator App works fine: