Sebastian Stehle
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
8 additions and
9 deletions
-
backend/src/Squidex/Areas/IdentityServer/Config/IdentityServerServices.cs
-
backend/src/Squidex/Areas/IdentityServer/Startup.cs
-
frontend/app/shared/components/schema-category.component.html
-
frontend/app/theme/_bootstrap.scss
|
|
|
@ -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>() |
|
|
|
|
|
|
|
@ -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(); |
|
|
|
|
|
|
|
@ -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> |
|
|
|
|
|
|
|
@ -573,6 +573,10 @@ a { |
|
|
|
@include build-text-button($color-theme-orange); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
&-outline-secondary { |
|
|
|
color: $color-text-decent; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$icon-size: 4.5rem; |
|
|
|
|