如何修改以下示例,以便它可以与基于SAML的身份验证配合使用:
var jiraConn = Jira.CreateRestClient(
"https://alm.mycompany.com/jira",
"username",
"password");
var projects = await jiraConn.Projects.GetProjectsAsync();
答案 0 :(得分:1)
你必须偷走cookie然后:
string cookie = ....;
var jiraConn = Jira.CreateRestClient(url);
jiraConn.RestClient.RestSharpClient.CookieContainer = new CookieContainer();
jiraConn.RestClient.RestSharpClient.CookieContainer.SetCookies(new Uri(url), cookie);
为了偷饼干