Skip to content

Commit

Permalink
Merge pull request #113 from pelavall/hotfix/addaadcredentialflavor
Browse files Browse the repository at this point in the history
Add AadCredential flavor to CredentialFactory
  • Loading branch information
rjmurillo committed Jan 18, 2017
2 parents 25b94dc + f318386 commit 1b3d9a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Qwiq.Core/Credentials/CredentialsFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ public static IEnumerable<TfsCredentials> CreateCredentials(string username = nu
if (!string.IsNullOrEmpty(password))
{
if (!string.IsNullOrEmpty(username))
{
{
yield return new TfsCredentials(new TfsClientCredentials(new AadCredential(username, password)) { AllowInteractive = false });

// Service Identity - Non Interactive
yield return new TfsCredentials(new TfsClientCredentials(new SimpleWebTokenCredential(username, password)) {AllowInteractive = false});

Expand Down

0 comments on commit 1b3d9a1

Please sign in to comment.