mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-06 22:32:16 +00:00
fix: add prompt on oidc rp, fix idp and login policy in console (#769)
* fix: add prompt on oidc rp * fix: add prompt on oidc rp * fix: translation * fix: translation * fix: not existing login policy * fix: login policy * fix: identity provider detail * fix: idp update * fix: idps in login policy * fix: lint * fix: scss * fix: external idps on auth user detail * fix: idp create mapping fields * fix: remove idp provider * fix: angular lint * fix: login policy view * fix: translations
This commit is contained in:
@@ -38,6 +38,7 @@ import {
|
||||
Views,
|
||||
} from '../proto/generated/admin_pb';
|
||||
import { GrpcService } from './grpc.service';
|
||||
import {IdpUpdate} from '../proto/generated/management_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
@@ -149,6 +150,12 @@ export class AdminService {
|
||||
return this.grpcService.admin.idpByID(req);
|
||||
}
|
||||
|
||||
public async UpdateIdp(
|
||||
req: IdpUpdate,
|
||||
): Promise<Idp> {
|
||||
return this.grpcService.admin.updateIdpConfig(req);
|
||||
}
|
||||
|
||||
public async CreateOidcIdp(
|
||||
req: OidcIdpConfigCreate,
|
||||
): Promise<Idp> {
|
||||
@@ -158,7 +165,7 @@ export class AdminService {
|
||||
public async UpdateOidcIdpConfig(
|
||||
req: OidcIdpConfigUpdate,
|
||||
): Promise<OidcIdpConfig> {
|
||||
return this.grpcService.mgmt.updateOidcIdpConfig(req);
|
||||
return this.grpcService.admin.updateOidcIdpConfig(req);
|
||||
}
|
||||
|
||||
public async RemoveIdpConfig(
|
||||
|
||||
@@ -7,6 +7,8 @@ import { catchError, filter, finalize, first, map, mergeMap, switchMap, take, ti
|
||||
import {
|
||||
Changes,
|
||||
ChangesRequest,
|
||||
ExternalIDPSearchRequest,
|
||||
ExternalIDPSearchResponse,
|
||||
Gender,
|
||||
MfaOtpResponse,
|
||||
MultiFactors,
|
||||
@@ -283,6 +285,18 @@ export class GrpcAuthService {
|
||||
return this.grpcService.auth.changeMyPassword(req);
|
||||
}
|
||||
|
||||
public async SearchExternalIdps(
|
||||
userId: string,
|
||||
limit: number,
|
||||
offset: number,
|
||||
asc?: boolean,
|
||||
): Promise<ExternalIDPSearchResponse> {
|
||||
const req = new ExternalIDPSearchRequest();
|
||||
req.setLimit(limit);
|
||||
req.setOffset(offset);
|
||||
return this.grpcService.auth.searchMyExternalIDPs(req);
|
||||
}
|
||||
|
||||
public async AddMfaOTP(): Promise<MfaOtpResponse> {
|
||||
return this.grpcService.auth.addMfaOTP(
|
||||
new Empty(),
|
||||
|
||||
@@ -26,6 +26,7 @@ import {
|
||||
Iam,
|
||||
Idp,
|
||||
IdpID,
|
||||
IdpUpdate,
|
||||
IdpProviderAdd,
|
||||
IdpProviderID,
|
||||
IdpProviderSearchRequest,
|
||||
@@ -224,6 +225,12 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.idpByID(req);
|
||||
}
|
||||
|
||||
public async UpdateIdp(
|
||||
req: IdpUpdate,
|
||||
): Promise<Idp> {
|
||||
return this.grpcService.mgmt.updateIdpConfig(req);
|
||||
}
|
||||
|
||||
public async CreateOidcIdp(
|
||||
req: OidcIdpConfigCreate,
|
||||
): Promise<Idp> {
|
||||
@@ -331,18 +338,18 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.searchMachineKeys(req);
|
||||
}
|
||||
|
||||
public async SearchExternalIdps(
|
||||
userId: string,
|
||||
limit: number,
|
||||
offset: number,
|
||||
asc?: boolean,
|
||||
): Promise<ExternalIDPSearchResponse> {
|
||||
const req = new ExternalIDPSearchRequest();
|
||||
req.setUserId(userId);
|
||||
req.setLimit(limit);
|
||||
req.setOffset(offset);
|
||||
return this.grpcService.mgmt.searchUserExternalIDPs(req);
|
||||
}
|
||||
public async SearchExternalIdps(
|
||||
userId: string,
|
||||
limit: number,
|
||||
offset: number,
|
||||
asc?: boolean,
|
||||
): Promise<ExternalIDPSearchResponse> {
|
||||
const req = new ExternalIDPSearchRequest();
|
||||
req.setUserId(userId);
|
||||
req.setLimit(limit);
|
||||
req.setOffset(offset);
|
||||
return this.grpcService.mgmt.searchUserExternalIDPs(req);
|
||||
}
|
||||
public async GetIam(): Promise<Iam> {
|
||||
const req = new Empty();
|
||||
return this.grpcService.mgmt.getIam(req);
|
||||
|
||||
Reference in New Issue
Block a user