Browse Source

URLS fixed.

pull/169/head
Sebastian Stehle 9 years ago
parent
commit
39e6ed11e0
  1. 6
      src/Squidex/Areas/OrleansDashboard/Middlewares/OrleansDashboardAuthenticationMiddleware.cs
  2. 1
      src/Squidex/Areas/OrleansDashboard/Startup.cs
  3. 3
      src/Squidex/Config/Identity/LazyClientStore.cs

6
src/Squidex/Areas/OrleansDashboard/Middlewares/OrleansDashboardAuthenticationMiddleware.cs

@ -35,8 +35,10 @@ namespace Squidex.Areas.OrleansDashboard.Middlewares
RedirectUri = context.Request.PathBase + context.Request.Path RedirectUri = context.Request.PathBase + context.Request.Path
}); });
} }
else
await next(context); {
await next(context);
}
} }
} }
} }

1
src/Squidex/Areas/OrleansDashboard/Startup.cs

@ -18,7 +18,6 @@ namespace Squidex.Areas.OrleansDashboard
{ {
app.Map("/orleans", orleansApp => app.Map("/orleans", orleansApp =>
{ {
orleansApp.UseAuthentication();
orleansApp.UseMiddleware<OrleansDashboardAuthenticationMiddleware>(); orleansApp.UseMiddleware<OrleansDashboardAuthenticationMiddleware>();
orleansApp.UseOrleansDashboard(); orleansApp.UseOrleansDashboard();
}); });

3
src/Squidex/Config/Identity/LazyClientStore.cs

@ -130,8 +130,7 @@ namespace Squidex.Config.Identity
ClientSecrets = new List<Secret> { new Secret(Constants.InternalClientSecret) }, ClientSecrets = new List<Secret> { new Secret(Constants.InternalClientSecret) },
RedirectUris = new List<string> RedirectUris = new List<string>
{ {
urlsOptions.BuildUrl("orleans/signin-oidc", false), urlsOptions.BuildUrl("signin-oidc", false)
urlsOptions.BuildUrl("portal/signin-oidc", false)
}, },
AccessTokenLifetime = (int)TimeSpan.FromDays(30).TotalSeconds, AccessTokenLifetime = (int)TimeSpan.FromDays(30).TotalSeconds,
AllowedGrantTypes = GrantTypes.ImplicitAndClientCredentials, AllowedGrantTypes = GrantTypes.ImplicitAndClientCredentials,

Loading…
Cancel
Save