private static MsaAuthentication GetVstsMsaAuthentication(RuntimeContext context, string @namespace) { ICredentialStore tokenStore1 = new SecretCache(context, @namespace + 1, Secret.UriToIdentityUrl); ITokenStore tokenStore2 = new SecretCache(context, @namespace + 2, Secret.UriToIdentityUrl); IAuthority liveAuthority = new AuthorityFake(MsaAuthentication.QueryParameters); return(new MsaAuthentication(context, tokenStore1, tokenStore2, liveAuthority)); }
private static AadAuthentication GetVstsAadAuthentication(RuntimeContext context, string @namespace) { string expectedQueryParameters = null; ICredentialStore tokenStore1 = new SecretCache(context, @namespace + 1, Secret.UriToIdentityUrl); ITokenStore tokenStore2 = new SecretCache(context, @namespace + 2, Secret.UriToIdentityUrl); IAuthority vstsAuthority = new AuthorityFake(expectedQueryParameters); return(new AadAuthentication(context, tokenStore1, tokenStore2, vstsAuthority)); }