fix(console): display links on the app detail from well-known/openid-connect endpoint correctly (#6469)

fix: display endpoints from wellknown correctly
This commit is contained in:
Max Peintner 2023-09-06 10:53:04 +02:00 committed by GitHub
parent bcf99e9749
commit c8775c41e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 15 deletions

View File

@ -427,20 +427,22 @@
<div class="app-info-row"> <div class="app-info-row">
<div class="app-info-wrapper" *ngFor="let wellKnownV of wellKnownMap$ | async | keyvalue"> <div class="app-info-wrapper" *ngFor="let wellKnownV of wellKnownMap$ | async | keyvalue">
<p class="app-info-row-title cnsl-secondary-text">{{ wellKnownV.key }}</p> <ng-container *ngIf="wellKnownV.key.endsWith('endpoint')">
<div class="app-copy-row"> <p class="app-info-row-title cnsl-secondary-text">{{ wellKnownV.key }}</p>
<div *ngIf="wellKnownV.value" class="environment"> <div class="app-copy-row">
<button <div *ngIf="wellKnownV.value" class="environment">
[disabled]="copied === wellKnownV.value" <button
[matTooltip]="(copied !== wellKnownV.value ? 'ACTIONS.COPY' : 'ACTIONS.COPIED') | translate" [disabled]="copied === wellKnownV.value"
cnslCopyToClipboard [matTooltip]="(copied !== wellKnownV.value ? 'ACTIONS.COPY' : 'ACTIONS.COPIED') | translate"
[valueToCopy]="wellKnownV.value" cnslCopyToClipboard
(copiedValue)="copied = wellKnownV.key" [valueToCopy]="wellKnownV.value"
> (copiedValue)="copied = wellKnownV.key"
{{ wellKnownV.value }} >
</button> {{ wellKnownV.value }}
</div> </button>
</div> </div>
</div></ng-container
>
</div> </div>
</div> </div>
</cnsl-card> </cnsl-card>

View File

@ -28,7 +28,7 @@ interface WellKnown {
}) })
export class EnvironmentService { export class EnvironmentService {
private environmentJsonPath = './assets/environment.json'; private environmentJsonPath = './assets/environment.json';
private wellknownPath = '/.well-known/openid-configuration`'; private wellknownPath = '/.well-known/openid-configuration';
public auth!: AuthServiceClient; public auth!: AuthServiceClient;
public mgmt!: ManagementServiceClient; public mgmt!: ManagementServiceClient;
public admin!: AdminServiceClient; public admin!: AdminServiceClient;