-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get cloud generated public key for marketplace licenses (#14851)
- Loading branch information
1 parent
8c3e8bb
commit 0bb9a52
Showing
6 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { retrieveRegistrationStatus } from './retrieveRegistrationStatus'; | ||
import { settings } from '../../../settings'; | ||
|
||
export function getWorkspaceKey() { | ||
const { connectToCloud, workspaceRegistered } = retrieveRegistrationStatus(); | ||
|
||
if (!connectToCloud || !workspaceRegistered) { | ||
return false; | ||
} | ||
|
||
const publicKey = settings.get('Cloud_Workspace_PublicKey'); | ||
|
||
if (!publicKey) { | ||
return false; | ||
} | ||
|
||
return publicKey; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters