Awesome
tSecret Version 2.0
Private Password Manager developped with Xamarin.Forms(C#) for iOS, Android and UWP projects. This manager can syncronize secret data to Azure Blob Storage. To specify user account, tSecret use Azure Active Directory authentication.
To use this repository, follow step below.
- Clone this repository to your local environment.
- Make MySecretParameter.cs in Xamarin Common folder(tSecret/tSecret)
- Create a partial class MySecretParameter like below sample.
namespace tSecret
{
public partial class MySecretParameter : SecretParameterBase
{
public override string KEY => "1234567890123456";
public override string TEXTSET64 => "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/+";
public override int IVNPP => 16;
public override string AzureStorageConnectionString => "DefaultEndpointsProtocol=https;AccountName=XXXXXXX;AccountKey=XXXXXX/XXX+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXX==;EndpointSuffix=core.windows.net";
public override string IosKeychainSecurityGroups => "com.yourappname.tsecret";
public override string AzureADClientId => "abcdef12-abcd-cdef-0123-1234567890ab";
public const string RedirectUrlScheme = "msalabcdef12-abcd-cdef-0123-1234567890ab";
}
}
Member | Remarks |
---|---|
KEY | Your secret key, 16 characters. |
TEXTSET64 | Shuffle these characters for your original base64 |
IVNPP | Set 16 here |
AzureStorageConnectionString | Set your connection string of Azure Blob Storage |
IosKeychainSecurityGroups | Set iOS key-chain group name |
AzureADClientId | Set Azure Active Directory Client ID (Application ID) |
RedirectUrlScheme | for Android Intent URL scheme name formatted "msal" + AzureADClientId |
.
Azure Active Directory settings
- App Registration
Go to "Azure Portal" --> "Active Directory Tenant" --> App registrations
Input application name and register.
- Configure platform
Select "Authentication" page then add new platform as "Mobile and desktop applications".
...Need two redirect URLs.
- Get Client ID for your MySecretParameter.AzureADClientId value.