Skip to content

Commit

Permalink
VCI-854: Add switch for user-friendly choose auth provider (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
krankenbro authored Mar 29, 2024
1 parent 870e80a commit d7cd052
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/VirtoCommerce.Build/Cloud/Build.SaaS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,23 @@ internal partial class Build
[Parameter("SaaS Portal")] public string CloudUrl { get; set; } = "https://portal.virtocommerce.cloud";
[Parameter("SaaS Token")] public string CloudToken { get; set; }
[Parameter("Path for the file with SaaS Token")] public string CloudTokenFile { get; set; } = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "vc-build", "cloud");
[Parameter("SaaS Auth Provider")] public string CloudAuthProvider { get; set; } = "GitHub";
[Parameter("SaaS Auth Provider")]
public string CloudAuthProvider
{
get
{
if (AzureAD)
{
return nameof(AzureAD);
}

return cloudAuthProvider;
}
set { cloudAuthProvider = value; }
}
[Parameter("Use Azure AD as SaaS Auth Provider")] public bool AzureAD = false;
private string cloudAuthProvider = "GitHub";

[Parameter("App Project Name")] public string AppProject { get; set; }
[Parameter("Cloud Environment Name")] public string EnvironmentName { get; set; }
[Parameter("Cloud Environment Service Plan")] public string ServicePlan { get; set; } = "F1";
Expand Down

0 comments on commit d7cd052

Please sign in to comment.