UI SSO Not working with Azure AD

I’ve tried solutions from ‘kapa.ai’ and this community post, however it’s still not working.

If I follow both replies and use login.microsoft.com I get:

{"message":"Unable to verify ID Token: oidc: id token issued by a different provider, expected \"https://sts.windows.net/tenantid/v2.0\" got \"https://login.microsoftonline.com/tenantid/v2.0\""}

If I change everything from login.microsoft.com to sts.windows.net(v2.0) I get:

{"message":"Unable to verify ID Token: oidc: id token issued by a different provider, expected \"https://sts.windows.net/redacted/v2.0\" got \"https://sts.windows.net/redacted/\""}

Any help is greatly appreciated.