I’m trying to configure Microsoft authentification. It works fine if App in azure registered to support “Accounts in any organizational directory (Any Azure AD directory - Multitenant)”, but it doesn’t work with “Accounts in this organizational directory only (Single tenant)”.
- [ ] Checked the logs and have provided the logs if I found something suspicious there
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [ ] Bug report
- [ ] Performance issue
- [x] Documentation issue or request
Current behavior
I get an error “Application ‘…’ is not configured as a multi-tenant application. Usage of the /common endpoint is not supported for such applications created after ‘10/15/2018’. Use a tenant-specific endpoint or configure the application to be multi-tenant.”
Expected behavior
It should be possible to use single tenant application by adding tenantId to configuration.
Minimal reproduction of the problem
- Try to configure microsoft authentification and in “Authentication” choose “Accounts in this organizational directory only (Single tenant)”
- Add redirect url to https://{squidexurl}/identity-server/signin-microsoft
- Create client secret in “Certificates & secrets”
- Configure squidex to use microsoft authentification by adding to config
{
“name”: “IDENTITY__MICROSOFTCLIENT”,
“value”: “{CLIENT}”,
“slotSetting”: false
},
{
“name”: “IDENTITY__MICROSOFTSECRET”,
“value”: “{SECRET}”,
“slotSetting”: false
}
Environment
- [x] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: [VERSION]
Browser:
- [x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others:
The problem is in authority URI. It’s https://login.microsoftonline.com/common/oauth2/v2.0/authorize for both types but for single tenant it should be https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize