コード例 #1
0
        private static string GetSecurityToken(ClientContext context, string username, string password)
        {
            string envelope = FormatEnvelope(username, password, context.SharePointUri.AbsoluteUri);

            return(UserAuthentication.GetSecurityToken(context, envelope));
        }
コード例 #2
0
        internal static void Authenticate(ClientContext context, string username, string password)
        {
            string securityToken = UserAuthentication.GetSecurityToken(context, username, password);

            UserAuthentication.GetAccessToken(context, securityToken);
        }