WCF authenticate WebForms RRS feed

  • Question

  • User-392731 posted

    Hi. I have a website with authenticate with web forms.

    My webConfig for site:

    <authentication mode="Forms">
          <forms loginUrl="~/Account/Login" timeout="2880" />
    <roleManager enabled="true">
            <clear />
            <add connectionStringName="DefaultConnection" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
            <add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" />

    Now I want add WCF service to my site. This service wil be used in mobile apps. How can I add method to my service for authentication? for example I do something like


    and then I want use my service only if user authenticated

    Tuesday, July 2, 2013 10:54 AM