Files
zitadel/console/src/app/modules/policies/oidc-webkeys/oidc-webkeys-inactive-table/oidc-webkeys-inactive-table.component.ts
T
Livio SpringandGitHub d5f35fbd54 fix(console): switch to webkeys v2 (from v2beta) (#11807)
# Which Problems Are Solved

The Management Console was still using the deprecate v2beta endpoints of
the webkey service even though the v2 service was move to GA a while
ago.

# How the Problems Are Solved

Switch to the v2 endpoints.

# Additional Changes

None

# Additional Context

- relates to #10773
2026-03-11 08:20:21 +00:00

25 lines
873 B
TypeScript

import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { ReplaySubject } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { MatTableDataSource } from '@angular/material/table';
import { WebKey } from '@zitadel/proto/zitadel/webkey/v2/key_pb';
@Component({
selector: 'cnsl-oidc-webkeys-inactive-table',
templateUrl: './oidc-webkeys-inactive-table.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false,
})
export class OidcWebKeysInactiveTableComponent {
@Input({ required: true })
public set inactiveWebKeys(webKeys: WebKey[] | null) {
this.inactiveWebKeys$.next(webKeys);
}
private inactiveWebKeys$ = new ReplaySubject<WebKey[] | null>(1);
protected dataSource$ = this.inactiveWebKeys$.pipe(
filter(Boolean),
map((webKeys) => new MatTableDataSource(webKeys)),
);
}