2
현재 SharePoint Authentication.asmx를 사용하여 C# 응용 프로그램 내에서 인증 세션을 만듭니다. 이 모든 작업을 예상하고 내가 업로드 할 수있는 파일 등입니다공유 URL에 응용 프로그램 - 공유 인증 세션
나는 또한 사용하여 내 응용 프로그램 내에서 내 SharePoint 사이트에 대한 링크가 :
내가 가진 문제는 내 사용자가에서 로그인하라는 메시지가 있다는 것입니다Process.Start("**/documents/Forms/***"); //URL modified for StackOverflow
브라우저에서 내 응용 프로그램과 함께 버튼을 클릭하면 브라우저에 세션이 없기 때문에 이해할 수 있습니다. 내 앱에서 브라우저와 공유하는 세션을 공유 할 수있는 방법이 있습니까? 당신이 당신의 문제를 해결할 수있는 방법에 따라 브라우저 객체를 유지할 수있는 경우
using (SPAuth.Authentication authSvc = new SPAuth.Authentication())
{
authSvc.Url = @"***/_vti_bin/Authentication.asmx"; //URL modified for StackOverflow
authSvc.CookieContainer = new System.Net.CookieContainer();
//set the FBA login information
SPAuth.LoginResult result = authSvc.Login(username, password);
if (result.ErrorCode == SPAuth.LoginErrorCode.NoError)
{
try
{
...
}
catch
{
...
}
}
}