known authorities

This commit is contained in:
Asier Isayas
2026-03-11 06:52:31 -07:00
parent 30fcf0c02e
commit 7dffd6554f
2 changed files with 17 additions and 5 deletions

View File

@@ -279,15 +279,18 @@ function createOpenVsCodeDialogButton(container: Explorer): CommandButtonCompone
}
function createLoginForEntraIDButton(container: Explorer): CommandButtonComponentProps {
if (configContext.platform !== Platform.Portal) {
return undefined;
}
// if (configContext.platform !== Platform.Portal) {
// return undefined;
// }
const handleCommandClick = async () => {
await container.openLoginForEntraIDPopUp();
useDataPlaneRbac.setState({ dataPlaneRbacEnabled: true });
};
console.log("is dataplane rbac enabled", userContext.dataPlaneRbacEnabled);
console.log("aad token", userContext.aadToken);
if (!userContext.dataPlaneRbacEnabled || userContext.aadToken) {
return undefined;
}