We use Entra ID as Identity Provider and we want to map Entra roles to the Zitadel user. I could successfully read the roles from the Entra ID token in a V2 Action "Retrieve IDP Intent Response" when the user logs-in using the IdP. In our frontend the PKCE flow is used with a Zitadel application of type Web with refresh token enabled.
The problem is that during a silent refresh, the "Retrieve IDP Intent Response" is not triggered. From what I understand, the silent refresh is only done against Zitadel, and therefore Entra is never called to issue new tokens. This means that if in Entra the roles of a user change, we can only detect the changes on the next interactive login of the user.
I wanted to ask if my assumptions are correct, and what the workaround or best practice would be to keep the Entra data in sync with Zitadel. In this discussion I saw that a user captures the Entra access and refresh tokens that are then used to call the Graph API. I may be able to do the same, and then refresh the Entra token silently in our bakend to get new Entra tokens with the newest roles, but I am not sure if this is the best solution to implement.
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
Z
ZITADEL
ZITADEL - Identity infrastructure, simplified for you.