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

Forums / General Discussions / login from external site

login from external site

6 posts, 0 answered
  1. Brian Crosby
    Brian Crosby avatar
    29 posts
    Registered:
    02 Jan 2006
    29 Apr 2011
    Link to this post
    Is it possible to login to Sitefinity from an external site? I created a basic html page with a form to post to the Sitefinity login page and redirect to the page maintenance page but it isn't logging in.

    Here's the code:

    <html>
    <body>
    <form id="aspnetForm" action="http://localhost/Sitefinity/Login?ReturnUrl=%2fSitefinity%2fPages" method="post" target="_blank">
    

      <input name="LoginFormControl$Password" id="LoginFormControl_Password" type="hidden" value="password" />
      <input name="LoginFormControl$UserName" id="LoginFormControl_UserName" type="hidden" value="admin" />
      <input name="LoginFormControl$hiddenSubmitButton" id="LoginFormControl_hiddenSubmitButton" type="submit" /> </form>
    </body>
    </html>

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Apr 2011
    Link to this post
    Hi Brian,

    Please check this post that shows how to authenticate an user from another application

    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/sitefinity-4-0-rc-integration-with-silverlight-existing-project.aspx

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Brian Crosby
    Brian Crosby avatar
    29 posts
    Registered:
    02 Jan 2006
    02 May 2011
    Link to this post
    The console application you provided works if the user isn't currently logged in but not if a user is already logged in.

    If you press y to "Do you want to logout the other user", it says try again.

    Any ideas? I'm using version 4.1 fresh install. I haven't done anything to it.

    Cheers. 
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    02 May 2011
    Link to this post
    Hi Brian,

    What is the response that returns inside InvokeWebMethod?

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Brian Crosby
    Brian Crosby avatar
    29 posts
    Registered:
    02 Jan 2006
    02 May 2011
    Link to this post
    the logout method returns true and the subsequent InvokeWebMethod call returns 9. If i go to the site in the browser and try to login it says that a user is still logged in. So the logout doesn't appear to be working even though it is returning true.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    04 May 2011
    Link to this post
    Hi Brian,

    Please check this post Authenticate user in Sitefinity 4.0

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
6 posts, 0 answered