SharePoint 2010 workflows doesn’t start when an item is Updated by provider hosted App

I’m working on 2013.

I’m using 2010 workflows for sending emails to external users on item update.

But the items are created using Provider hosted App by the user name “SharePoint APP” and App is given full control permission.

Scenario’s Tried:

  1. Tried calling 2010 workflow from 2013 workflow – not working
  2. Tried triggering the workflow through code but since we use third party authentication it is merely not possible and also includes lot of work and not a smooth solution.

Is it a security risk to give out ssh key and one of or both public and private keys to my webhosting provider?

My web hosting provider requires my ssh password and one of or both private and or public ssh keys to setup ssh access. This seems like a security risk to me. Aren’t private keys supposed to stay on your machine. If I gave out my ssh password couldn’t they just create my private and public keys themselves? Wouldn’t that allow them access to my machine? Or am I mistaken?

For clarity: it’s on the hosting providers website that they are asking for the ssh key and one or both public and or private ssh keys in a web form not an error openssh terminal connection or human interaction. They have two text areas that you can choose one or both and they are for your public and private keys. Then they have one mandatory text area for ssh key.

Im used to gaining access to sites that allow ssh by only giving out my public key so this seems fishy.

Also hoping this falls under risk management as Im trying to understand if this is a risk to my machine.

screenshot from webhost asking for public and or private keys and passphrase

Provider Hosted high trust App- 400 Bad request

I am getting 400 bad request when provider hosted app is trying to connect to SharePoint.Below is the stacktrace:

System.Net.WebException: The remote server returned an error: (400) Bad Request.    at System.Net.HttpWebRequest.GetResponse()    at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()    at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)    at Project.SharePoint.Web.Controllers.HomeController.GetLoggedInUserName() 

The server logs shows that /_vti_bin/client.svc/ProcessQuery is giving me 400 bad request.

I have tried to connect to the client.svc from browser of the server where the MVC provider is installed and it works, so there is no access issue. Any help would be great.

Edit:

[SharePointContextFilter]         public string GetLoggedInUserName()         {             string userName = string.Empty;                  User spUser = null;                  var spContext = SharePointContextProvider.Current.GetSharePointContext(HttpContext);                  using (var clientContext = spContext.CreateUserClientContextForSPHost())                 {                     if (clientContext != null)                     {                         var web = clientContext.Web;                         spUser = web.CurrentUser;                         clientContext.Load(spUser, user => user.Title);                         clientContext.ExecuteQuery();                         userName = spUser.Title;                     }                 }              return userName;         } 

Configure a SharePoint 2016 Web Application with Forms Based Authentication with a LDAP membership provider

I am trying to Configure a SharePoint 2016 Web Application with Forms Based Authentication with a LDAP membership provider, I followed the same steps mentioned in the below articles.

Configure a SharePoint 2013 Web Application with Forms Based Authentication with a LDAP membership provider

FBA with LDAP provider

when i browse web application and select forms-based authentication i get the following error in uls logs.

STS Call: Failed to issue new security token. Exception: System.ServiceModel.FaultException`1[Microsoft.IdentityModel.Tokens.FailedAuthenticationException]: The security token username and password could not be validated. (Fault Detail is equal to Microsoft.IdentityModel.Tokens.FailedAuthenticationException: The security token username and password could not be validated.).

An exception occurred when trying to issue security token: The security token username and password could not be validated.

i want to verify for SharePoint 2016 below dlls version number is valid or not?

type=”Microsoft.Office.Server.Security.LdapMembershipProvider, Microsoft.Office.Server, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”

Microsoft.Office.Server.Security.LdapRoleProvider, Microsoft.Office.Server, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c