login from external site
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="localhost/.../Login 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>
Hi Brian,
Please check this post that shows how to authenticate an user from another application
www.sitefinity.com/.../sitefinity-4-0-rc-integration-with-silverlight-existing-project.aspx
Regards,
Ivan Dimitrov
the Telerik team
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.
Hi Brian,
What is the response that returns inside InvokeWebMethod?
Kind regards,
Ivan Dimitrov
the Telerik team
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.
Hi Brian,
Please check this post Authenticate user in Sitefinity 4.0
Regards,
Ivan Dimitrov
the Telerik team