Browse Source

Styling fix and restrict tokens to provide better error message.

pull/443/head
Sebastian Stehle 6 years ago
parent
commit
8dfab2eb83
  1. 2
      .gitignore
  2. 2
      backend/src/Squidex/Config/Authentication/IdentityServerServices.cs
  3. 4
      frontend/app/theme/_bootstrap.scss

2
.gitignore

@ -22,7 +22,7 @@ _test-output/
# NodeJS # NodeJS
node_modules/ node_modules/
/src/Squidex/Assets/ /backend/src/Squidex/Assets
appsettings.Development.json appsettings.Development.json
appsettings.Production.json appsettings.Production.json

2
backend/src/Squidex/Config/Authentication/IdentityServerServices.cs

@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license. // All rights reserved. Licensed under the MIT license.
// ========================================================================== // ==========================================================================
using IdentityServer4.AccessTokenValidation;
using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
@ -42,6 +43,7 @@ namespace Squidex.Config.Authentication
options.ApiName = apiScope; options.ApiName = apiScope;
options.ApiSecret = null; options.ApiSecret = null;
options.RequireHttpsMetadata = identityOptions.RequiresHttps; options.RequireHttpsMetadata = identityOptions.RequiresHttps;
options.SupportedTokens = SupportedTokens.Jwt;
}); });
authBuilder.AddOpenIdConnect(options => authBuilder.AddOpenIdConnect(options =>

4
frontend/app/theme/_bootstrap.scss

@ -521,8 +521,8 @@ a {
} }
&-lg { &-lg {
@media (min-width: 992px) { @media (max-width: 992px) {
max-width: 854px; max-width: 90%;
} }
} }

Loading…
Cancel
Save