private static MsaAuthentication GetDevOpsMsaAuthentication(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(null); return(new MsaAuthentication(context, tokenStore1, tokenStore2, liveAuthority)); }
private static AadAuthentication GetDevOpsAadAuthentication(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 devopsAuthority = new AuthorityFake(expectedQueryParameters); return(new AadAuthentication(context, tokenStore1, tokenStore2, devopsAuthority)); }