mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 18:32:10 +00:00
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:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user