Browse Source

Http Support (#734)

* Https.

* Minor style improvement.
pull/735/head
Sebastian Stehle 5 years ago
committed by GitHub
parent
commit
1b7bc3e90c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      backend/src/Squidex/Areas/IdentityServer/Config/IdentityServerServices.cs
  2. 8
      backend/src/Squidex/Areas/IdentityServer/Startup.cs
  3. 2
      frontend/app/shared/components/schema-category.component.html
  4. 4
      frontend/app/theme/_bootstrap.scss

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

@ -20,6 +20,7 @@ using Squidex.Hosting;
using Squidex.Web;
using Squidex.Web.Pipeline;
using static OpenIddict.Abstractions.OpenIddictConstants;
using static OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers;
using static OpenIddict.Server.OpenIddictServerEvents;
using static OpenIddict.Server.OpenIddictServerHandlers;
@ -80,6 +81,8 @@ namespace Squidex.Areas.IdentityServer.Config
})
.AddServer(builder =>
{
builder.RemoveEventHandler(ValidateTransportSecurityRequirement.Descriptor);
builder.AddEventHandler<ProcessSignInContext>(builder =>
{
builder.UseSingletonHandler<AlwaysAddTokenHandler>()

8
backend/src/Squidex/Areas/IdentityServer/Startup.cs

@ -30,14 +30,6 @@ namespace Squidex.Areas.IdentityServer
identityApp.UseExceptionHandler("/error");
}
identityApp.Use((context, next) =>
{
// OpenId dict core only works with https, which sucks in our tests.
context.Request.IsHttps = true;
return next();
});
identityApp.UseRouting();
identityApp.UseAuthentication();

2
frontend/app/shared/components/schema-category.component.html

@ -21,7 +21,7 @@
({{filteredSchemas.length}})
</ng-container>
<ng-template #noSchemas>
<button type="button" class="btn btn-sm btn-text-secondary btn-remove" (click)="remove.emit()">
<button type="button" class="btn btn-sm btn-text-secondary btn-remove" (click)="remove.emit()" *ngIf="schemaCategory.name">
<i class="icon-bin2"></i>
</button>
</ng-template>

4
frontend/app/theme/_bootstrap.scss

@ -573,6 +573,10 @@ a {
@include build-text-button($color-theme-orange);
}
}
&-outline-secondary {
color: $color-text-decent;
}
}
$icon-size: 4.5rem;

Loading…
Cancel
Save