Microsoft SSO Integration - Solved

Your software
My Mautic version is: 4.0.1
My PHP version is: 7.4
My Database type and version is: 10.6.3-MariaDB

I am using a nginx frontend and a php-fpm backend both in docker instances.

Your problem
My problem is:

I am attempting to allow users to sign in through SSO, however when anyone tries to login we get Invalid login. Please verify credentials.

I know the credentials are correct because I am already logged into microsoft with them and it just redirects me and auto logs me in. In addition, I have attempted to install different versions of mautic 4.0.0, 4.0.1, and 3.3.4. I have also attempted to change the specified IDP claims to their “Display Name” and the actual claim names as specified in the federated metadata xml. The only thing I have not done is generate a x.509 certificate as I was under the impression that this step is optional. Is it actually required?

Thanks for any help anyone can provide.

These errors are showing in the log:
There are no errors show in the log relating to SSO only entries like below:
[2021-10-04 20:16:29] mautic.DEBUG: CAMPAIGN: Current contact ID# 6
[2021-10-04 20:16:29] mautic.DEBUG: CAMPAIGN: Contact does not have any applicable page.devicehit associations.


This has been solved. We found out we needed to use the full xml URL based specification instead of the names of the specification or specification IDs provided by microsoft.

**instead of **
surname or Surname as specified in the azure admin portal and the xml