private static VstsMsaAuthentication GetVstsMsaAuthentication(string @namespace) { ICredentialStore tokenStore1 = new SecretCache(@namespace + 1); ITokenStore tokenStore2 = new SecretCache(@namespace + 2); IVstsAuthority liveAuthority = new AuthorityFake(VstsMsaAuthentication.QueryParameters); return(new VstsMsaAuthentication(tokenStore1, tokenStore2, liveAuthority)); }
private VstsAadAuthentication GetVstsAadAuthentication(string @namespace) { ICredentialStore tokenStore1 = new SecretCache(@namespace + 1); ITokenStore tokenStore2 = new SecretCache(@namespace + 2); IVstsAuthority vstsAuthority = new AuthorityFake(); return(new VstsAadAuthentication(tokenStore1, tokenStore2, vstsAuthority)); }
private static VstsMsaAuthentication GetVstsMsaAuthentication(RuntimeContext context, string @namespace) { ICredentialStore tokenStore1 = new SecretCache(context, @namespace + 1, Secret.UriToIdentityUrl); ITokenStore tokenStore2 = new SecretCache(context, @namespace + 2, Secret.UriToIdentityUrl); IVstsAuthority liveAuthority = new AuthorityFake(VstsMsaAuthentication.QueryParameters); return(new VstsMsaAuthentication(context, tokenStore1, tokenStore2, liveAuthority)); }
private VsoMsaAuthentication GetVsoMsaAuthentication(string @namespace) { ICredentialStore tokenStore1 = new SecretCache(@namespace + 1); ITokenStore tokenStore2 = new SecretCache(@namespace + 2); ITokenStore tokenStore3 = new SecretCache(@namespace + 3); IVsoAuthority liveAuthority = new AuthorityFake(); return(new VsoMsaAuthentication(tokenStore1, tokenStore2, tokenStore3, liveAuthority)); }
private static VstsAadAuthentication GetVstsAadAuthentication(string @namespace) { string expectedQueryParameters = null; ICredentialStore tokenStore1 = new SecretCache(@namespace + 1); ITokenStore tokenStore2 = new SecretCache(@namespace + 2); IVstsAuthority vstsAuthority = new AuthorityFake(expectedQueryParameters); return(new VstsAadAuthentication(tokenStore1, tokenStore2, vstsAuthority)); }
private static VstsAadAuthentication 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); IVstsAuthority vstsAuthority = new AuthorityFake(expectedQueryParameters); return(new VstsAadAuthentication(context, tokenStore1, tokenStore2, vstsAuthority)); }
private static VstsAadAuthentication GetVstsAadAuthentication(string @namespace, string loginHint) { string expectedQueryParamters = null; if (loginHint != null) { expectedQueryParamters = "login_hint=" + loginHint; } ICredentialStore tokenStore1 = new SecretCache(@namespace + 1); ITokenStore tokenStore2 = new SecretCache(@namespace + 2); IVstsAuthority vstsAuthority = new AuthorityFake(expectedQueryParamters); return(new VstsAadAuthentication(tokenStore1, tokenStore2, vstsAuthority, loginHint)); }
private VstsMsaAuthentication GetVstsMsaAuthentication(string @namespace) { ICredentialStore tokenStore1 = new SecretCache(@namespace + 1); ITokenStore tokenStore2 = new SecretCache(@namespace + 2); ITokenStore tokenStore3 = new SecretCache(@namespace + 3); IVstsAuthority liveAuthority = new AuthorityFake(); return new VstsMsaAuthentication(tokenStore1, tokenStore2, tokenStore3, liveAuthority); }