+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Authentication Fails

Authentication Fails

4 posts, 0 answered
  1. Dave Ranck
    Dave Ranck avatar
    14 posts
    Registered:
    30 Oct 2003
    05 Oct 2009
    Link to this post
    I'm having an issue with Authentication.

    I set up Sitefinity (3.7) using the blank project and everything works fine. I can log in, create pages....everything that I should be able to do. I took a copy of this project and merged it into a web app that I want to use it in. Now when I navigate to SiteFinity, my log in is not being authenticated. Stepping through the code my log in credentials are being validated and the authentication cookie is being set. I am redirected to the default page, and when I reach the line "if (this.Request.IsAuthenticated)", false is being returned and so I'm redirected back to the log in page.

    Has this happened to anyone else? Can anyone provide a solution,
    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    05 Oct 2009
    Link to this post
    Hello Mike Brady,

    Do you use any custom code? If so can you paste it here? Check whether the authentication cookie is not lost before you check whether the request is authenticated.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Dave Ranck
    Dave Ranck avatar
    14 posts
    Registered:
    30 Oct 2003
    05 Oct 2009
    Link to this post
    The only custom code within our SiteFinity project was adding a WebProfile class to use instead of ProfileCommon (we are using a web application, not a website). But this code works fine in our test application.

    I think the issue may be occurring because both the SiteFinity log in and our web app log in is using Forms Authentication. Have you seen this before?
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    08 Oct 2009
    Link to this post
    Hi Mike Brady,

    Thank you for the reply.

    Asp.Net allows only one Forms Authentication login at a time. Sitefinity should usually replace the authentication cookie, if such exists, with a new one when you try to login. 

    Can you please elaborate a little bit more on the scenario and the login. Are you using one membership provider for both applications? Do you want to implement a single sign on? You can also provide us with a live url on which we can see the problem.

    Thank you in advance. 

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered