From 77c3154028e7024acb35908cf30ed4a3b1373e88 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 18 Nov 2019 16:35:53 +0100 Subject: [PATCH] Changelog for 4.0.3 --- CHANGELOG.md | 6 ++++++ .../Authentication/MicrosoftAuthenticationServices.cs | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cdc1af0b..d1fff9287 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 4.0.3 - 2019-11-18 + +### Features + +* **Login**: Support for Microsoft TenantId. Thanks to [mhilgersom](https://github.com/mhilgersom) + ## 4.0.2 - 2019-11-18 ### Bugfixes diff --git a/backend/src/Squidex/Config/Authentication/MicrosoftAuthenticationServices.cs b/backend/src/Squidex/Config/Authentication/MicrosoftAuthenticationServices.cs index d03814afa..aabd68f12 100644 --- a/backend/src/Squidex/Config/Authentication/MicrosoftAuthenticationServices.cs +++ b/backend/src/Squidex/Config/Authentication/MicrosoftAuthenticationServices.cs @@ -27,6 +27,7 @@ namespace Squidex.Config.Authentication if (!string.IsNullOrEmpty(tenantId)) { var resource = "https://graph.microsoft.com"; + options.AuthorizationEndpoint = $"https://login.microsoftonline.com/{tenantId}/oauth2/authorize?resource={resource}"; options.TokenEndpoint = $"https://login.microsoftonline.com/{tenantId}/oauth2/token?resource={resource}"; }