Skip to content

Commit

Permalink
Allow the credential to be non base 64 to support passwords added thr…
Browse files Browse the repository at this point in the history
…ough PS cmdlets
  • Loading branch information
omer-iqbal committed May 16, 2016
1 parent a796bd9 commit cabff48
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions AadGraphApiHelper/AddTenantCredentialForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,27 +131,14 @@ private bool IsKeyOrReplyUrlValid()
{
if (this.webAppRadioButton.Checked)
{
return this.IsClientKeyValid();
return true;
}
else
{
return this.IsReplyUrlValid();
}
}

private bool IsClientKeyValid()
{
try
{
Convert.FromBase64String(this.keyOrReplyUrlTextBox.Text);
return true;
}
catch (Exception)
{
return false;
}
}

private bool IsReplyUrlValid()
{
Uri uriResult;
Expand Down

0 comments on commit cabff48

Please sign in to comment.