fix(console): idp write access (#2258)

* fix: idp

* disable idp form in detail

* lint

* change list idp request

* fix external idp removal
This commit is contained in:
Max Peintner
2021-08-26 08:15:00 +02:00
committed by GitHub
parent 34002ec834
commit cd629a5d1c
12 changed files with 179 additions and 138 deletions

View File

@@ -34,7 +34,7 @@ const routes: Routes = [
loadChildren: () => import('src/app/modules/idp/idp.module').then(m => m.IdpModule),
canActivate: [RoleGuard],
data: {
roles: ['iam.idp.read'],
roles: ['org.idp.read'],
serviceType: PolicyComponentServiceType.MGMT,
},
},

View File

@@ -102,10 +102,10 @@ export class ExternalIdpsComponent implements OnInit {
let promise;
if (this.service instanceof ManagementService) {
promise = (this.service as ManagementService)
.removeHumanLinkedIDP(idp.providedUserId, idp.idpId, idp.userId);
.removeHumanLinkedIDP(idp.idpId, idp.providedUserId, idp.userId);
} else if (this.service instanceof GrpcAuthService) {
promise = (this.service as GrpcAuthService)
.removeMyLinkedIDP(idp.providedUserId, idp.idpId);
.removeMyLinkedIDP(idp.idpId, idp.providedUserId);
}
if (promise) {