Hi All,
I am trying to create a provider hosted app in sharepoint with FBA Authentication. I already have a basic provider hosted app and I wanted to add FBA authentication to it. I changed the web config file as below after adding a login page
<authentication mode="Forms">
<forms loginUrl="Pages/Login.aspx">
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<membership defaultProvider="fbaMember">
<providers>
<add connectionStringName="fbaSQL" applicationName="/" name="fbaMember" type="System.Web.Security.SqlMembershipProvider, System.Web,
 Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</membership>
<roleManager enabled="true" cacheRolesInCookie="false" defaultProvider="fbaRole">
<providers>
<add connectionStringName="fbaSQL" applicationName="/" name="fbaRole" type="System.Web.Security.SqlRoleProvider, System.Web,
 Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</roleManager>
<connectionStrings>
<add name="fbaSQL" connectionString="server=servername;database=dbNameOfMemberShip;Trusted_Connection=true"/>
</connectionStrings>
<add key="ClientID" value="111-111--111-****" />
<add key="ClientSecret" value="222-*******" />
<add key="ClientSigningCertificatePath" value="C:\Path\CertName.pfx" />
<add key="ClientSigningCertificatePassword" value="password" />
<add key="IssuerId" value="23232*******" />
<add key="MembershipProviderName" value="FbaMember"/>
Then I disabled the Windows authentication in the IIS of asp.net application. But after that, when I access the Client web parts and asp.net application, I am getting the following error:
"401 - Unauthorized: Access is denied due to invalid credentials".
Can somebody provide me the information on creating a Provider hosted app with FBA authentication.
Any help will be appreciated
Regards
Vishnu
dfd