Browse Source

Formatting.

pull/457/head
Sebastian 6 years ago
parent
commit
1d10330185
  1. 1
      backend/src/Squidex/Areas/IdentityServer/Config/IdentityServerServices.cs
  2. 1
      backend/src/Squidex/Config/Authentication/MicrosoftAuthenticationServices.cs

1
backend/src/Squidex/Areas/IdentityServer/Config/IdentityServerServices.cs

@ -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;

1
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}";
}

Loading…
Cancel
Save