-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
208 additions
and
77 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,16 @@ | ||
ļ»æusing System; | ||
namespace sk.Core | ||
{ | ||
public abstract class BaseSecretStore | ||
{ | ||
public virtual string? GetSecret(string service) { | ||
Console.WriteLine("BaseSecretStore#GetSecret called?"); | ||
return null; | ||
} | ||
public virtual bool SetSecret(string service, string secret, string username) { | ||
Console.WriteLine("BaseSecretStore#SetSecret called?"); | ||
return false; | ||
} | ||
} | ||
} | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
sk.Players.Mac.AppleMusic.BindingLibrary/sk.Players.Mac.AppleMusic.BindingLibrary.csproj
This file was deleted.
Oops, something went wrong.
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
Binary file modified
BIN
-1.79 KB
(77%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.92 KB
(76%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-210 Bytes
(70%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-401 Bytes
(73%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.78 KB
(76%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-16.2 KB
(72%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-401 Bytes
(73%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-928 Bytes
(73%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-16.2 KB
(72%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-45 KB
(74%)
sk.UI.Mac/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.security.app-sandbox</key> | ||
<true/> | ||
<key>com.apple.security.automation.apple-events</key> | ||
<true/> | ||
<key>com.apple.security.cs.allow-jit</key> | ||
<true/> | ||
<key>com.apple.security.network.client</key> | ||
<true/> | ||
<!--<key>keychain-access-groups</key> | ||
<array> | ||
<string>$(AppIdentifierPrefix)dev.foxt.sk.mac</string> | ||
</array>--> | ||
</dict> | ||
</plist> |
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,61 @@ | ||
ļ»æusing System; | ||
using sk.Core; | ||
using Security; | ||
namespace sk.UI.Mac | ||
{ | ||
public class MacKeychainSecretStore : BaseSecretStore | ||
{ | ||
// Clean all keychain entries -- we do this to prevent duplicate entries causing undefined behaviour. | ||
private void KeychainClean(string service) { | ||
var query = new SecRecord(SecKind.GenericPassword) { | ||
Service = service, | ||
Label = "sk stored secret" | ||
}; | ||
var status = SecKeyChain.Remove(query); | ||
|
||
Console.WriteLine("Keychain Clean: " + status); | ||
} | ||
private void KeychainAdd(string service, string secret, string username) { | ||
KeychainClean(service); | ||
var record = new SecRecord(SecKind.GenericPassword) { | ||
Service = service, | ||
Label = "sk stored secret", | ||
Account = username, | ||
ValueData = secret, | ||
//Accessible = SecAccessible.AfterFirstUnlock, | ||
//UseDataProtectionKeychain = true, | ||
//Synchronizable = true | ||
}; | ||
var status = SecKeyChain.Add(record) ; | ||
Console.WriteLine("Keychain Write: " + status); | ||
if (status != SecStatusCode.Success) | ||
throw new SecurityException(status); | ||
|
||
} | ||
private string? KeychainGet(string service) { | ||
var query = new SecRecord(SecKind.GenericPassword) { | ||
Service = service, | ||
Label = "sk stored secret" | ||
}; | ||
SecStatusCode status; | ||
var data = SecKeyChain.QueryAsData(query, false, out status); | ||
|
||
Console.WriteLine("Keychain Get: " + status); | ||
if (status == SecStatusCode.Success) | ||
return data.ToString(); | ||
else if (status == SecStatusCode.ItemNotFound) | ||
return null; | ||
else | ||
throw new SecurityException(status); | ||
} | ||
|
||
override public string? GetSecret(string service) { | ||
return KeychainGet(service); | ||
} | ||
override public bool SetSecret(string service, string secret, string username) { | ||
KeychainAdd(service,secret,username); | ||
return true; | ||
} | ||
} | ||
} | ||
|
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<WebPublishMethod>FileSystem</WebPublishMethod> | ||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> | ||
<LastUsedPlatform>AnyCPU</LastUsedPlatform> | ||
<publishUrl>bin/Release/net7.0-macos10.14/publish</publishUrl> | ||
<DeleteExistingFiles>false</DeleteExistingFiles> | ||
<TargetFramework>net7.0-macos10.14</TargetFramework> | ||
<SelfContained>false</SelfContained> | ||
<_IsPortable>true</_IsPortable> | ||
</PropertyGroup> | ||
</Project> |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.