I have a custom connector with Authentication Type - Azure Active Directory configured as below :

Here, I have entered ClientID and ClientSecret from the App registration and Resource URL -https://management.core.windows.net/
When I am authenticating an user with my organization directory from both the tenant it is working (i.e. authenticating). But when I am trying to authenticate against the Office 365 user I am getting AADSTS650057 error below.

Please help and suggest to resolve this issue.