Exemplo n.º 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));
        }
Exemplo n.º 2
0
        internal static void Authenticate(ClientContext context, string username, string password)
        {
            string securityToken = UserAuthentication.GetSecurityToken(context, username, password);

            UserAuthentication.GetAccessToken(context, securityToken);
        }