Hello everyone, I have set up my keycloak to use Azure AD.
When testing my app, after I login for the first time, using my Microsoft account, I get redirected to a page that contains the form shown in the picture below :
and right after the user fills the form and submits, he will be redirected to the app.
My question is, is there a way to remove the form, and redirect the user directly to the app.
This is being shown because those user profile elements are currently set to required. If you enable the declarative user profile (Realm Settings → General) and then go to the User profile tab, you can go into each element (email, first name, last name) and turn Required to OFF. Then the update profile screen you are seeing won’t be triggered.
DECLARATIVE_USER_PROFILE is a preview feature, and must be turned on. Information on how to turn on preview features is here: Enabling and disabling features - Keycloak
I have found that “email” and “username” required fields are set to “OFF” by default, so I didn’t change them, whereas “firstName” and “lastName” are set to “ON” by default, so I have set them to “OFF”. But the Update Account Information screen is still showing and the “email” and “username” fields have the “*” that stands for required.
@amrabet I believe there is another alternative than using the declarative profile. You create a copy of the first broker flow and disable the review profile from it, and set it as the used flow in the identity provider section → Microsoft.