mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-16 02:35:12 +00:00
# Which Problems Are Solved - Clearing OIDC redirect URI lists in the console does not persist correctly resulting in no changes error. # How the Problems Are Solved - Normalizes empty OIDC URI list updates to [""] before sending the save request. - Uses the application v2 update call for the affected OIDC config save path. # References - Closes #12053
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { MessageInitShape } from '@bufbuild/protobuf';
|
||||
import { UpdateApplicationRequestSchema } from '@zitadel/proto/zitadel/application/v2/application_service_pb';
|
||||
|
||||
import { GrpcService } from './grpc.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ApplicationService {
|
||||
constructor(private readonly grpcService: GrpcService) {}
|
||||
|
||||
public updateApplication(req: MessageInitShape<typeof UpdateApplicationRequestSchema>) {
|
||||
return this.grpcService.application.updateApplication(req);
|
||||
}
|
||||
}
|
||||
@@ -26,11 +26,13 @@ import { createAdminServiceClient, createAuthServiceClient, createManagementServ
|
||||
import { createGrpcWebTransport } from '@connectrpc/connect-web';
|
||||
import { createClientFor } from '@zitadel/client';
|
||||
|
||||
import { WebKeyService } from '@zitadel/proto/zitadel/webkey/v2/webkey_service_pb';
|
||||
import { ActionService } from '@zitadel/proto/zitadel/action/v2/action_service_pb';
|
||||
import { ApplicationService } from '@zitadel/proto/zitadel/application/v2/application_service_pb';
|
||||
import { WebKeyService } from '@zitadel/proto/zitadel/webkey/v2/webkey_service_pb';
|
||||
|
||||
const createWebKeyServiceClient = createClientFor(WebKeyService);
|
||||
const createActionServiceClient = createClientFor(ActionService);
|
||||
const createApplicationServiceClient = createClientFor(ApplicationService);
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
@@ -49,6 +51,7 @@ export class GrpcService {
|
||||
public webKey!: ReturnType<typeof createWebKeyServiceClient>;
|
||||
public organizationNew!: ReturnType<typeof createOrganizationServiceClient>;
|
||||
public adminNew!: ReturnType<typeof createAdminServiceClient>;
|
||||
public application!: ReturnType<typeof createApplicationServiceClient>;
|
||||
|
||||
public assets!: void;
|
||||
|
||||
@@ -108,6 +111,7 @@ export class GrpcService {
|
||||
this.webKey = createWebKeyServiceClient(transport);
|
||||
this.organizationNew = createOrganizationServiceClient(transport);
|
||||
this.adminNew = createAdminServiceClient(transportOldAPIs);
|
||||
this.application = createApplicationServiceClient(transport);
|
||||
|
||||
const authConfig: AuthConfig = {
|
||||
scope: 'openid profile email',
|
||||
|
||||
Reference in New Issue
Block a user