Browse Source

Styling fix and restrict tokens to provide better error message.

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

4
.gitignore

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

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

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

4
frontend/app/theme/_bootstrap.scss

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

Loading…
Cancel
Save