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:
Fabi
2020-09-23 16:52:19 +02:00
committed by GitHub
parent 9887e897ee
commit 0bd27bc8e4
47 changed files with 890 additions and 648 deletions
+8 -1
View File
@@ -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(),
+19 -12
View File
@@ -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);