Autoapprove Element Call oidc requests (#11209)
* autoapprove Element Call oidc requests Signed-off-by: Timo K <toger5@hotmail.de> * update comment Signed-off-by: Timo K <toger5@hotmail.de> * add tests for oidc element-call Signed-off-by: Timo K <toger5@hotmail.de> * fix ES lint Signed-off-by: Timo K <toger5@hotmail.de> --------- Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -165,6 +165,14 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
||||
WidgetEventCapability.forToDeviceEvent(EventDirection.Receive, eventType).raw,
|
||||
);
|
||||
}
|
||||
|
||||
// To always allow OIDC requests for element call, the widgetPermissionStore is used:
|
||||
SdkContextClass.instance.widgetPermissionStore.setOIDCState(
|
||||
forWidget,
|
||||
forWidgetKind,
|
||||
inRoomId,
|
||||
OIDCState.Allowed,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user