O365 SSO with Google - Getting AADSTS50107 error

My problem refers to:

After debugging the rules, now I have it working except that only the function connectWithUser() cannot work, which actually redirects the user to the login page of Office 365 at:
with error message like:
“AADSTS50107: Requested federation realm object ‘urn:XXXXX’ does not exist.”

having conducted some searches on the web, it seems that, to login with “wsfed” protocol, the Office 365 domain has to be “federated”, which must be configured with Azure AD Connect, and some configurations are to be set up by using PowerShell.

any workaround if there is no on-premises AD synced with Azure AD?

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?