Skip to content

Commit

Permalink
mask ibmq api token input field
Browse files Browse the repository at this point in the history
  • Loading branch information
sw1sh committed Feb 15, 2024
1 parent df317c1 commit 7ff9ab3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion IBMQ/Kernel/IBMQ.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
ConfirmMatch[
OAuthDialogDump`Private`MultipleKeyDialog[
"IBMQ",
{"API token" -> "token"},
{"API token" -> {"token", FieldMasked -> True}},
"https://quantum-computing.ibm.com/account",
"https://quantum-computing.ibm.com/terms/privacy"
],
Expand Down
2 changes: 1 addition & 1 deletion IBMQ/PacletInfo.wl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Paclet[
Name -> "ServiceConnection_IBMQ",
Version -> "0.0.3",
Version -> "0.0.4",
MathematicaVersion -> "10+",
Extensions ->
{
Expand Down
3 changes: 0 additions & 3 deletions QuantumFramework/Assets/ServiceConnection_IBMQ-0.0.3.paclet

This file was deleted.

3 changes: 3 additions & 0 deletions QuantumFramework/Assets/ServiceConnection_IBMQ-0.0.4.paclet
Git LFS file not shown
2 changes: 1 addition & 1 deletion QuantumFramework/Kernel/QuantumFrameworkLoader.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

pacletInstalledQ[paclet_, version_] := AnyTrue[Through[PacletFind[paclet]["Version"]], ResourceFunction["VersionOrder"][#, version] <= 0 &]

If[ ! pacletInstalledQ["ServiceConnection_IBMQ", "0.0.3"],
If[ ! pacletInstalledQ["ServiceConnection_IBMQ", "0.0.4"],
PacletInstall[PacletObject["Wolfram/QuantumFramework"]["AssetLocation", "IBMQ.paclet"]]
]

Expand Down
2 changes: 1 addition & 1 deletion QuantumFramework/PacletInfo.wl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ PacletObject[
{"AutoCompletionData", "Root" -> "AutoCompletionData"},
{"FrontEnd"},
{"Asset", "Root" -> "Assets", "Assets" -> {
{"IBMQ.paclet", "ServiceConnection_IBMQ-0.0.3.paclet"},
{"IBMQ.paclet", "ServiceConnection_IBMQ-0.0.4.paclet"},
{"Cotengra.paclet", "Cotengra-0.1.paclet"}
}}
}
Expand Down

0 comments on commit 7ff9ab3

Please sign in to comment.