Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #724 from microsoft/xfield/remove-function-key
Browse files Browse the repository at this point in the history
Remove deprecated Azure Function access key
  • Loading branch information
vxfield authored Sep 16, 2022
2 parents 20d1e6e + c467d84 commit ea470e8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/Kernel/client/telemetry.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

//[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="This function access is supposed to be public.")]
const CLIENT_INFO_API_URL = 'https://iqsharp-telemetry.azurewebsites.net/api/GetClientInfo?code=1kIsLwHdwLlH9n5LflhgVlafZaTH122yPK/3xezIjCQqC87MJrkdyQ==';
const CLIENT_INFO_API_URL = 'https://iqsharp-telemetry.azurewebsites.net/api/GetClientInfo?';

const COOKIE_CONSENT_JS = 'https://wcpstatic.microsoft.com/mscc/lib/v2/wcp-consent.js';

Expand Down Expand Up @@ -89,11 +88,6 @@ class CookieConsentHelper {
});
}

private onConsentChanged(categoryPreferences: Record<ConsentCategories, boolean>) {
console.log("onConsentChanged", categoryPreferences);
this.checkRequiredConsent();
}

private checkRequiredConsent() {
const hasConsent = this.siteConsent.getConsentFor(ConsentCategories.Required);
console.log(`HasConsent: ${hasConsent}`);
Expand Down Expand Up @@ -127,7 +121,12 @@ class CookieConsentHelper {
} else {
console.log("Error initializing WcpConsent: " + err);
}
}, this.onConsentChanged, window.matchMedia('prefers-color-scheme: dark').matches ? Themes.dark : Themes.light);
},
(categoryPreferences: Record<ConsentCategories, boolean>) => {
console.log("onConsentChanged", categoryPreferences);
this.checkRequiredConsent();
},
window.matchMedia('prefers-color-scheme: dark').matches ? Themes.dark : Themes.light);
}
}

Expand Down
27 changes: 27 additions & 0 deletions src/Tool/Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "5f3293d1",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Q#",
"language": "qsharp",
"name": "iqsharp"
},
"language_info": {
"file_extension": ".qs",
"mimetype": "text/x-qsharp",
"name": "qsharp",
"version": "0.26"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit ea470e8

Please sign in to comment.