Hi @Prabhay Gupta • Thank you for reaching out.
From your question, I understood that you have set User Flow > Properties > Session behavior > Single-sign-on configuration to Tenant. Despite that, when you authenticate two different applications via the same User flow, you have to authenticate for each application.
The only reason I can think of, that could be contributing to the issue, is the usage of the prompt
parameter in the authentication request. This parameter indicates the type of user interaction that is required. When prompt=login parameter is present in the authentication request, it forces the user to enter their credentials on that request, negating single-sign on.
If you are passing prompt=login in authentication request, try removing it and test again.
Other valid values that can be set for this parameter, are:
- prompt=none is the opposite. It ensures that the user isn't presented with any interactive prompt. If the request can't be completed silently by using single-sign on, the Microsoft identity platform returns an interaction_required error.
- prompt=consent triggers the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app.
- prompt=select_account interrupts single sign-on providing account selection experience listing all the accounts either in session or any remembered account or an option to choose to use a different account altogether.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.