@ -77,6 +77,7 @@ namespace Squidex.Areas.IdentityServer.Config
services.AddIdentityServer(options =>
{
options.UserInteraction.ErrorUrl = "/error/";
if (!string.IsNullOrWhiteSpace(urlsOptions.BaseUrl))
options.PublicOrigin = urlsOptions.BaseUrl;
@ -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}";
}