SSO in Azure

In Azure we have hosted Dynamic 365 and Drupal. We are using Azure AD B2C for logging into both apps.
If users logs in into the Drupal and is rediecting to dymanics user is not able to login automatically unless click on login and submit in dymanics.

Are there any settings we need to do in php while redirecting to dynamics?(currently we are just redirecting to that url with no pararmeters)